]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Move type first in SigMatch array since it is used more often.
authorKen Steele <ken@tilera.com>
Fri, 5 Sep 2014 21:21:28 +0000 (17:21 -0400)
committerVictor Julien <victor@inliniac.net>
Thu, 15 Jan 2015 10:52:03 +0000 (11:52 +0100)
src/detect.h

index c5a8de180536049243db8bcfebb3d9e41adae8f7..b03a4929493c58f2415f6d4a4504a620d0aba2a6 100644 (file)
@@ -366,8 +366,8 @@ typedef struct SignatureHeader_ {
 
 /** \brief a single match condition for a signature */
 typedef struct SigMatch_ {
-    uint16_t idx; /**< position in the signature */
     uint8_t type; /**< match type */
+    uint16_t idx; /**< position in the signature */
     void *ctx; /**< plugin specific data */
     struct SigMatch_ *next;
     struct SigMatch_ *prev;