]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: make SigMatch.is_last bool 10187/head
authorShivani Bhardwaj <shivani@oisf.net>
Tue, 16 Jan 2024 08:41:34 +0000 (14:11 +0530)
committerVictor Julien <victor@inliniac.net>
Wed, 17 Jan 2024 16:20:30 +0000 (17:20 +0100)
It is used like bool so much so that nothing needs to be changed even
after changing its type.

src/detect.h

index 9b7b58794e6fc581f5102e8981a269dbd99aa51a..0fc5d21fb1d8ab68083bbeedad6dba4aea4303c9 100644 (file)
@@ -354,7 +354,7 @@ typedef struct SigMatch_ {
 /** \brief Data needed for Match() */
 typedef struct SigMatchData_ {
     uint16_t type;   /**< match type */
-    uint8_t is_last; /**< Last element of the list */
+    bool is_last;    /**< Last element of the list */
     SigMatchCtx *ctx; /**< plugin specific data */
 } SigMatchData;