]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/mpm: minor cleanup: remove unused function arg
authorVictor Julien <victor@inliniac.net>
Fri, 6 Oct 2017 12:07:51 +0000 (14:07 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 24 Nov 2017 09:14:37 +0000 (10:14 +0100)
src/detect-engine-mpm.c
src/detect-engine-mpm.h
src/detect.c

index 6351455319fe1aa59ba959ef9b9c65a88b01405e..845341fe9880a63a817964a2dee7bc3c89556d86 100644 (file)
@@ -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);
 }
index 80ce0bdd99e0e8dacf7549eabfc495b9a76eb51f..38bd4194610bcc12a21c10049515864a22b742c1 100644 (file)
@@ -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);
index d68b42abc955208ae43cee15300a9c48efec679c..91dbaa379e645958cabd60a81d01e9d47ce09639 100644 (file)
@@ -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