forked from Telodendria/Telodendria
Fix some warnings generated by Cygwin's GCC.
This commit is contained in:
parent
62f7016bc0
commit
887c4e4d5b
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -38,7 +38,7 @@ IsInteger(char *str)
|
|||
{
|
||||
while (*str)
|
||||
{
|
||||
if (!isdigit(*str))
|
||||
if (!isdigit((unsigned char) *str))
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue