From: Jeff Lucovsky Date: Thu, 27 Jul 2023 14:41:18 +0000 (-0400) Subject: prefilter/bool: Use bool values for is_last X-Git-Tag: suricata-8.0.0-beta1~2063 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8f2a3ea7be8087201e14ab2de25dffe7de6afe68;p=thirdparty%2Fsuricata.git prefilter/bool: Use bool values for is_last --- diff --git a/src/detect-engine-prefilter.c b/src/detect-engine-prefilter.c index 3c33071e72..e40a5175da 100644 --- a/src/detect-engine-prefilter.c +++ b/src/detect-engine-prefilter.c @@ -453,7 +453,7 @@ void PrefilterSetupRuleGroup(DetectEngineCtx *de_ctx, SigGroupHead *sgh) el->pectx = NULL; // e now owns the ctx e->gid = el->gid; if (el->next == NULL) { - e->is_last = TRUE; + e->is_last = true; } e++; } @@ -477,7 +477,7 @@ void PrefilterSetupRuleGroup(DetectEngineCtx *de_ctx, SigGroupHead *sgh) el->pectx = NULL; // e now owns the ctx e->gid = el->gid; if (el->next == NULL) { - e->is_last = TRUE; + e->is_last = true; } e++; } @@ -579,7 +579,7 @@ void PrefilterSetupRuleGroup(DetectEngineCtx *de_ctx, SigGroupHead *sgh) el->pectx = NULL; // e now owns the ctx e->gid = el->gid; if (el->next == NULL) { - e->is_last = TRUE; + e->is_last = true; } e++; }