[PATCH:libxtrans 2/2] Cast ctype(3) function arguments to unsigned char.
Thomas Klausner
wiz at NetBSD.org
Wed Mar 26 04:49:32 PDT 2014
Fixes warnings on at least NetBSD.
Signed-off-by: Thomas Klausner <wiz at NetBSD.org>
---
Xtrans.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Xtrans.c b/Xtrans.c
index 9a6dfbc..ada53d3 100644
--- a/Xtrans.c
+++ b/Xtrans.c
@@ -164,8 +164,8 @@ TRANS(SelectTransport) (const char *protocol)
protobuf[PROTOBUFSIZE-1] = '\0';
for (i = 0; i < PROTOBUFSIZE && protobuf[i] != '\0'; i++)
- if (isupper (protobuf[i]))
- protobuf[i] = tolower (protobuf[i]);
+ if (isupper ((unsigned char)protobuf[i]))
+ protobuf[i] = tolower ((unsigned char)protobuf[i]);
/* Look at all of the configured protocols */
--
1.9.0
More information about the xorg-devel
mailing list