(submit/fix-char-signedness) xfree86: common: xf86Bus: fix char signess mismatch
On NetBSD gives warning: In file included from /usr/include/ctype.h:100, from ../hw/xfree86/common/xf86Bus.c:36: ../hw/xfree86/common/xf86Bus.c: In function ‘StringToBusType’: ../hw/xfree86/common/xf86Bus.c:270:22: warning: array subscript has type ‘char’ [-Wchar-subscripts] 270 | if (isdigit(busID[0])) { | ^ Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
8fa7192799
commit
65e814aaa1
|
@ -269,7 +269,7 @@ StringToBusType(const char *busID, const char **retID)
|
|||
BusType ret = BUS_NONE;
|
||||
|
||||
/* If no type field, Default to PCI */
|
||||
if (isdigit(busID[0])) {
|
||||
if (isdigit((unsigned char)busID[0])) {
|
||||
if (retID)
|
||||
*retID = busID;
|
||||
return BUS_PCI;
|
||||
|
|
Loading…
Reference in New Issue