Xming: Fix warnings in winNameCompare(), winNormalizeName()
winconfig.c: In function ‘winNameCompare’: winconfig.c:715: warning: array subscript has type ‘char’ winconfig.c:715: warning: array subscript has type ‘char’ winconfig.c:716: warning: array subscript has type ‘char’ winconfig.c:716: warning: array subscript has type ‘char’ winconfig.c:730: warning: array subscript has type ‘char’ winconfig.c:730: warning: array subscript has type ‘char’ winconfig.c:731: warning: array subscript has type ‘char’ winconfig.c:731: warning: array subscript has type ‘char’ winconfig.c: In function ‘winNormalizeName’: winconfig.c:1092: warning: array subscript has type ‘char’ winconfig.c:1093: warning: array subscript has type ‘char’ Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
20510e5100
commit
6d9fb07db2
@ -712,8 +712,8 @@ winNameCompare (const char *s1, const char *s2)
|
||||
while (*s2 == '_' || *s2 == ' ' || *s2 == '\t')
|
||||
s2++;
|
||||
|
||||
c1 = (isupper (*s1) ? tolower (*s1) : *s1);
|
||||
c2 = (isupper (*s2) ? tolower (*s2) : *s2);
|
||||
c1 = (isupper ((int)*s1) ? tolower ((int)*s1) : *s1);
|
||||
c2 = (isupper ((int)*s2) ? tolower ((int)*s2) : *s2);
|
||||
|
||||
while (c1 == c2)
|
||||
{
|
||||
@ -727,8 +727,8 @@ winNameCompare (const char *s1, const char *s2)
|
||||
while (*s2 == '_' || *s2 == ' ' || *s2 == '\t')
|
||||
s2++;
|
||||
|
||||
c1 = (isupper (*s1) ? tolower (*s1) : *s1);
|
||||
c2 = (isupper (*s2) ? tolower (*s2) : *s2);
|
||||
c1 = (isupper ((int)*s1) ? tolower ((int)*s1) : *s1);
|
||||
c2 = (isupper ((int)*s2) ? tolower ((int)*s2) : *s2);
|
||||
}
|
||||
return c1 - c2;
|
||||
}
|
||||
@ -1089,8 +1089,8 @@ winNormalizeName (const char *s)
|
||||
case '\t':
|
||||
continue;
|
||||
default:
|
||||
if (isupper (*p))
|
||||
*q++ = tolower (*p);
|
||||
if (isupper ((int)*p))
|
||||
*q++ = tolower ((int)*p);
|
||||
else
|
||||
*q++ = *p;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user