From: Victor Julien Date: Thu, 13 Apr 2017 14:55:34 +0000 (+0200) Subject: mingw: don't use uint type as mingw doesn't have it X-Git-Tag: suricata-4.0.0-beta1~210 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec964ebf8406220593898aaf01252d26bba0ec17;p=thirdparty%2Fsuricata.git mingw: don't use uint type as mingw doesn't have it --- diff --git a/src/app-layer-htp.c b/src/app-layer-htp.c index 4d435cc236..39ce9754ed 100644 --- a/src/app-layer-htp.c +++ b/src/app-layer-htp.c @@ -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; } diff --git a/src/util-device.c b/src/util-device.c index f8afbc239c..9848f2d635 100644 --- a/src/util-device.c +++ b/src/util-device.c @@ -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); }