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;
|
headerPtr = line + i + 1;
|
||||||
|
|
||||||
while (isspace(*headerPtr))
|
while (isspace((unsigned char) *headerPtr))
|
||||||
{
|
{
|
||||||
headerPtr++;
|
headerPtr++;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = lineLen - 1; i > (line + lineLen) - headerPtr; i--)
|
for (i = lineLen - 1; i > (line + lineLen) - headerPtr; i--)
|
||||||
{
|
{
|
||||||
if (!isspace(line[i]))
|
if (!isspace((unsigned char) line[i]))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -294,7 +294,7 @@ Log(LogConfig * config, int level, const char *msg,...)
|
||||||
if (tsLength)
|
if (tsLength)
|
||||||
{
|
{
|
||||||
fputs(tsBuffer, config->out);
|
fputs(tsBuffer, config->out);
|
||||||
if (!isspace(tsBuffer[tsLength - 1]))
|
if (!isspace((unsigned char) tsBuffer[tsLength - 1]))
|
||||||
{
|
{
|
||||||
fputc(' ', config->out);
|
fputc(' ', config->out);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,7 @@ IsInteger(char *str)
|
||||||
{
|
{
|
||||||
while (*str)
|
while (*str)
|
||||||
{
|
{
|
||||||
if (!isdigit(*str))
|
if (!isdigit((unsigned char) *str))
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue