(submit/fix-char-signedness) xfree86: common: xf86Option: fix char signess mismatch
On NetBSD gives warning:
In file included from /usr/include/ctype.h:100,
from ../hw/xfree86/common/xf86Option.c:39:
../hw/xfree86/common/xf86Option.c: In function ‘xf86NormalizeName’:
../hw/xfree86/common/xf86Option.c:915:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
915 | if (isupper(*p))
| ^
../hw/xfree86/common/xf86Option.c:916:32: warning: array subscript has type ‘char’ [-Wchar-subscripts]
916 | *q++ = tolower(*p);
| ^
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
856e8664fc
commit
3e2afb9390
|
|
@ -912,8 +912,8 @@ xf86NormalizeName(const char *s)
|
|||
case '\t':
|
||||
continue;
|
||||
default:
|
||||
if (isupper(*p))
|
||||
*q++ = tolower(*p);
|
||||
if (isupper((unsigned char)*p))
|
||||
*q++ = tolower((unsigned char)*p);
|
||||
else
|
||||
*q++ = *p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue