From 34463baacb3cafc096e0e0859bc10d6868cb2299 Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Wed, 26 Mar 2014 13:21:23 +0100 Subject: Cast ctype(3) function arguments to unsigned char. Fixes warnings on at least NetBSD. Reviewed-by: Mark Kettenis Signed-off-by: Thomas Klausner --- Xtrans.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Xtrans.c') 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 */ -- cgit v1.2.3