]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
mingw: don't use uint type as mingw doesn't have it
authorVictor Julien <victor@inliniac.net>
Thu, 13 Apr 2017 14:55:34 +0000 (16:55 +0200)
committerVictor Julien <victor@inliniac.net>
Sat, 15 Apr 2017 16:30:10 +0000 (18:30 +0200)
src/app-layer-htp.c
src/util-device.c

index 4d435cc236d52e1326004a5b4e4a4c60fbf3dca2..39ce9754ed171d1b8dacebb7f4f8087d80a3b4cd 100644 (file)
@@ -2720,9 +2720,9 @@ static int HTPRegisterPatternsForProtocolDetection(void)
     char *spacings[] = { "|20|", "|09|", NULL };
     char *versions[] = { "HTTP/0.9", "HTTP/1.0", "HTTP/1.1", NULL };
 
-    uint methods_pos;
-    uint spacings_pos;
-    uint versions_pos;
+    int methods_pos;
+    int spacings_pos;
+    int versions_pos;
     int register_result;
     char method_buffer[32] = "";
 
@@ -2754,7 +2754,7 @@ static int HTPRegisterPatternsForProtocolDetection(void)
             return -1;
         }
     }
-    
+
     return 0;
 }
 
index f8afbc239cd076a6f49c393bbbfa2e2884b932f1..9848f2d6356a00037728ae6820aed2921586bceb 100644 (file)
@@ -179,7 +179,7 @@ static int LiveSafeDeviceName(const char *devname, char *newdevname, size_t dest
         snprintf(newdevname, half+1, "%s", devname);
 
         /* Add the amount of spaces wanted */
-        for (uint i = half; i < half+spaces; i++) {
+        for (size_t i = half; i < half+spaces; i++) {
             length = strlcat(newdevname, ".", destlen);
         }