Fixes warnings on at least NetBSD.
Signed-off-by: Thomas Klausner <[email protected]>
---
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
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel