From: Victor Julien Date: Sun, 8 Oct 2017 16:20:18 +0000 (+0200) Subject: detect: minor profiling cleanup X-Git-Tag: suricata-4.1.0-beta1~541 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9ee041984836c20b4c7e6dad98689adb18c09b5;p=thirdparty%2Fsuricata.git detect: minor profiling cleanup --- diff --git a/src/detect.c b/src/detect.c index 91dbaa379e..0e7a6437a2 100644 --- a/src/detect.c +++ b/src/detect.c @@ -894,9 +894,6 @@ void SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineT bool use_flow_sgh = false; uint8_t alert_flags = 0; AppProto alproto = ALPROTO_UNKNOWN; -#ifdef PROFILING - int smatch = 0; /* signature match: 1, no match: 0 */ -#endif uint8_t flow_flags = 0; /* flow/state flags */ const Signature *s = NULL; const Signature *next_s = NULL; @@ -1147,7 +1144,7 @@ void SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineT RULE_PROFILING_START(p); state_alert = 0; #ifdef PROFILING - smatch = 0; + bool smatch = false; /* signature match */ #endif s = next_s; sflags = next_sflags; @@ -1361,7 +1358,7 @@ void SigMatchSignatures(ThreadVars *th_v, DetectEngineCtx *de_ctx, DetectEngineT } #ifdef PROFILING - smatch = 1; + smatch = true; #endif SigMatchSignaturesRunPostMatch(th_v, de_ctx, det_ctx, p, s);