Fix some warnings generated by Cygwin's GCC.

This commit is contained in:
Jordan Bancino 2022-10-15 10:28:03 -04:00
parent 62f7016bc0
commit 887c4e4d5b
3 changed files with 4 additions and 4 deletions

View file

@ -507,14 +507,14 @@ HttpServerWorkerThread(void *args)
headerPtr = line + i + 1;
while (isspace(*headerPtr))
while (isspace((unsigned char) *headerPtr))
{
headerPtr++;
}
for (i = lineLen - 1; i > (line + lineLen) - headerPtr; i--)
{
if (!isspace(line[i]))
if (!isspace((unsigned char) line[i]))
{
break;
}

View file

@ -294,7 +294,7 @@ Log(LogConfig * config, int level, const char *msg,...)
if (tsLength)
{
fputs(tsBuffer, config->out);
if (!isspace(tsBuffer[tsLength - 1]))
if (!isspace((unsigned char) tsBuffer[tsLength - 1]))
{
fputc(' ', config->out);
}

View file

@ -38,7 +38,7 @@ IsInteger(char *str)
{
while (*str)
{
if (!isdigit(*str))
if (!isdigit((unsigned char) *str))
{
return 0;
}