]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/file: minor cleanup
authorVictor Julien <victor@inliniac.net>
Sun, 5 Apr 2020 15:47:45 +0000 (17:47 +0200)
committerVictor Julien <victor@inliniac.net>
Mon, 7 Dec 2020 15:01:52 +0000 (16:01 +0100)
src/detect-engine-file.c

index 4e9e9de021853f5322fffe6ed8ee48272ca34d5e..7f1dcd53c9c18e854c01f32abc77947c0ab967f3 100644 (file)
@@ -65,9 +65,8 @@
  *  \retval 2 can't match
  *  \retval 3 can't match filestore signature
  */
-static int DetectFileInspect(ThreadVars *tv, DetectEngineThreadCtx *det_ctx,
-        Flow *f, const Signature *s, const SigMatchData *smd,
-        uint8_t flags, FileContainer *ffc)
+static int DetectFileInspect(DetectEngineThreadCtx *det_ctx, Flow *f, const Signature *s,
+        const SigMatchData *smd, uint8_t flags, FileContainer *ffc)
 {
     int r = 0;
     int match = 0;
@@ -216,10 +215,9 @@ static int DetectFileInspect(ThreadVars *tv, DetectEngineThreadCtx *det_ctx,
  *
  *  \note flow is not locked at this time
  */
-int DetectFileInspectGeneric(ThreadVars *tv,
-        DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
-        const Signature *s, const SigMatchData *smd,
-        Flow *f, uint8_t flags, void *_alstate, void *tx, uint64_t tx_id)
+int DetectFileInspectGeneric(ThreadVars *_tv, DetectEngineCtx *de_ctx,
+        DetectEngineThreadCtx *det_ctx, const Signature *s, const SigMatchData *smd, Flow *f,
+        uint8_t flags, void *_alstate, void *tx, uint64_t tx_id)
 {
     SCEnter();
     DEBUG_VALIDATE_BUG_ON(f->alstate != _alstate);
@@ -231,7 +229,7 @@ int DetectFileInspectGeneric(ThreadVars *tv,
     }
 
     int r = DETECT_ENGINE_INSPECT_SIG_NO_MATCH;
-    int match = DetectFileInspect(tv, det_ctx, f, s, smd, flags, ffc);
+    int match = DetectFileInspect(det_ctx, f, s, smd, flags, ffc);
     if (match == DETECT_ENGINE_INSPECT_SIG_MATCH) {
         r = DETECT_ENGINE_INSPECT_SIG_MATCH;
     } else if (match == DETECT_ENGINE_INSPECT_SIG_CANT_MATCH) {