summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Klausner <wiz@NetBSD.org>2014-03-26 13:21:23 +0100
committerThomas Klausner <wiz@NetBSD.org>2014-03-26 13:21:23 +0100
commit34463baacb3cafc096e0e0859bc10d6868cb2299 (patch)
tree9c17143759d56e0f47202c093cc2dc168d99841d
parentf20a9bb2ea25408ce9f1166b3b6e48759960fe86 (diff)
Cast ctype(3) function arguments to unsigned char.
Fixes warnings on at least NetBSD. Reviewed-by: Mark Kettenis <kettenis@openbsd.org> Signed-off-by: Thomas Klausner <wiz@NetBSD.org>
-rw-r--r--Xtrans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xtrans.c b/Xtrans.c
index d9e32d0..11f6161 100644
--- a/Xtrans.c
+++ b/Xtrans.c
@@ -166,8 +166,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 */