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); }