diff options
author | Thomas Klausner <wiz@NetBSD.org> | 2014-03-26 13:21:23 +0100 |
---|---|---|
committer | Thomas Klausner <wiz@NetBSD.org> | 2014-03-26 13:21:23 +0100 |
commit | 34463baacb3cafc096e0e0859bc10d6868cb2299 (patch) | |
tree | 9c17143759d56e0f47202c093cc2dc168d99841d | |
parent | f20a9bb2ea25408ce9f1166b3b6e48759960fe86 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |