From: Victor Julien Date: Fri, 6 Oct 2017 12:07:51 +0000 (+0200) Subject: detect/mpm: minor cleanup: remove unused function arg X-Git-Tag: suricata-4.1.0-beta1~542 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26abf5337c687e42b544fcfb9322500c4c00f9c5;p=thirdparty%2Fsuricata.git detect/mpm: minor cleanup: remove unused function arg --- diff --git a/src/detect-engine-mpm.c b/src/detect-engine-mpm.c index 6351455319..845341fe98 100644 --- a/src/detect-engine-mpm.c +++ b/src/detect-engine-mpm.c @@ -398,7 +398,7 @@ uint16_t PatternMatchDefaultMatcher(void) } /** \brief cleans up the mpm instance after a match */ -void PacketPatternCleanup(ThreadVars *t, DetectEngineThreadCtx *det_ctx) +void PacketPatternCleanup(DetectEngineThreadCtx *det_ctx) { PmqReset(&det_ctx->pmq); } diff --git a/src/detect-engine-mpm.h b/src/detect-engine-mpm.h index 80ce0bdd99..38bd419461 100644 --- a/src/detect-engine-mpm.h +++ b/src/detect-engine-mpm.h @@ -42,7 +42,7 @@ uint32_t PatternStrength(uint8_t *, uint16_t); uint16_t PatternMatchDefaultMatcher(void); uint32_t DnsQueryPatternSearch(DetectEngineThreadCtx *det_ctx, uint8_t *buffer, uint32_t buffer_len, uint8_t flags); -void PacketPatternCleanup(ThreadVars *, DetectEngineThreadCtx *); +void PacketPatternCleanup(DetectEngineThreadCtx *); void PatternMatchPrepare(MpmCtx *, uint16_t); void PatternMatchThreadPrepare(MpmThreadCtx *, uint16_t type); diff --git a/src/detect.c b/src/detect.c index d68b42abc9..91dbaa379e 100644 --- a/src/detect.c +++ b/src/detect.c @@ -1409,7 +1409,7 @@ end: PACKET_PROFILING_DETECT_START(p, PROF_DETECT_CLEANUP); /* cleanup pkt specific part of the patternmatcher */ - PacketPatternCleanup(th_v, det_ctx); + PacketPatternCleanup(det_ctx); /* store the found sgh (or NULL) in the flow to save us from looking it * up again for the next packet. Also return any stream chunk we processed