detect/mpm: minor cleanup: remove unused function arg

pull/3013/head
Victor Julien 9 years ago
parent 03274051cf
commit 26abf5337c

@ -398,7 +398,7 @@ uint16_t PatternMatchDefaultMatcher(void)
} }
/** \brief cleans up the mpm instance after a match */ /** \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); PmqReset(&det_ctx->pmq);
} }

@ -42,7 +42,7 @@ uint32_t PatternStrength(uint8_t *, uint16_t);
uint16_t PatternMatchDefaultMatcher(void); uint16_t PatternMatchDefaultMatcher(void);
uint32_t DnsQueryPatternSearch(DetectEngineThreadCtx *det_ctx, uint8_t *buffer, uint32_t buffer_len, uint8_t flags); 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 PatternMatchPrepare(MpmCtx *, uint16_t);
void PatternMatchThreadPrepare(MpmThreadCtx *, uint16_t type); void PatternMatchThreadPrepare(MpmThreadCtx *, uint16_t type);

@ -1409,7 +1409,7 @@ end:
PACKET_PROFILING_DETECT_START(p, PROF_DETECT_CLEANUP); PACKET_PROFILING_DETECT_START(p, PROF_DETECT_CLEANUP);
/* cleanup pkt specific part of the patternmatcher */ /* 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 /* 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 * up again for the next packet. Also return any stream chunk we processed

Loading…
Cancel
Save