]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect: remove unused args from detect flag storing
authorVictor Julien <vjulien@oisf.net>
Tue, 11 Feb 2025 11:56:21 +0000 (12:56 +0100)
committerVictor Julien <vjulien@oisf.net>
Wed, 12 Feb 2025 06:40:17 +0000 (07:40 +0100)
src/detect.c

index 1f169612443c30403021909b9783c7edc5a18a49..f7ef724fde66b37316d71a92ce7d0e3c4efa94d3 100644 (file)
@@ -1363,8 +1363,8 @@ static DetectTransaction GetDetectTx(const uint8_t ipproto, const AppProto alpro
     return tx;
 }
 
-static inline void StoreDetectFlags(DetectTransaction *tx, const uint8_t flow_flags,
-        const uint8_t ipproto, const AppProto alproto, const uint64_t detect_flags)
+static inline void StoreDetectFlags(
+        DetectTransaction *tx, const uint8_t flow_flags, const uint64_t detect_flags)
 {
     AppLayerTxData *txd = (AppLayerTxData *)tx->tx_data_ptr;
     if (likely(txd != NULL)) {
@@ -1675,7 +1675,7 @@ static void DetectRunTx(ThreadVars *tv,
             SCLogDebug("%p/%"PRIu64" Storing new flags %016"PRIx64" (was %016"PRIx64")",
                     tx.tx_ptr, tx.tx_id, new_detect_flags, tx.detect_flags);
 
-            StoreDetectFlags(&tx, flow_flags, ipproto, alproto, new_detect_flags);
+            StoreDetectFlags(&tx, flow_flags, new_detect_flags);
         }
         InspectionBufferClean(det_ctx);