]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/prefilter: update tx_min_progress to uint8_t
authorVictor Julien <victor@inliniac.net>
Wed, 15 Sep 2021 14:58:17 +0000 (16:58 +0200)
committerVictor Julien <victor@inliniac.net>
Fri, 17 Sep 2021 08:42:17 +0000 (10:42 +0200)
Now that our make progress value is 47, we don't need an int.

src/detect.h

index d0b888b49bdb1dfbe5abea34c42bb37fc681ed49..3f86b5de69c3551edaa4043abb5242579b91225d 100644 (file)
@@ -1268,7 +1268,7 @@ typedef struct PrefilterEngineList_ {
     AppProto alproto;
     /** Minimal Tx progress we need before running the engine. Only used
      *  with Tx Engine */
-    int tx_min_progress;
+    uint8_t tx_min_progress;
 
     /** Context for matching. Might be MpmCtx for MPM engines, other ctx'
      *  for other engines. */
@@ -1296,7 +1296,7 @@ typedef struct PrefilterEngine_ {
     AppProto alproto;
     /** Minimal Tx progress we need before running the engine. Only used
      *  with Tx Engine */
-    int tx_min_progress;
+    uint8_t tx_min_progress;
 
     /** Context for matching. Might be MpmCtx for MPM engines, other ctx'
      *  for other engines. */