mingw: don't use uint type as mingw doesn't have it

pull/2666/head
Victor Julien 9 years ago
parent 8f15e30a58
commit ec964ebf84

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

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

Loading…
Cancel
Save