From 26b81ca00733987f447a819de3f00a3ef52ba256 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Tue, 16 Jan 2024 14:11:34 +0530 Subject: [PATCH] detect: make SigMatch.is_last bool It is used like bool so much so that nothing needs to be changed even after changing its type. --- src/detect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect.h b/src/detect.h index 9b7b58794e..0fc5d21fb1 100644 --- a/src/detect.h +++ b/src/detect.h @@ -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;