From 1b51530afbc5dff413ea0090834d92e1d96e96e9 Mon Sep 17 00:00:00 2001 From: runge Date: Tue, 4 Jul 2006 19:55:28 +0000 Subject: x11vnc: remove compiler warnings; HP-UX tweaks. --- x11vnc/util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'x11vnc/util.c') diff --git a/x11vnc/util.c b/x11vnc/util.c index 64220d0..aa0fb79 100644 --- a/x11vnc/util.c +++ b/x11vnc/util.c @@ -103,7 +103,7 @@ void lowercase(char *str) { } p = str; while (*p != '\0') { - *p = tolower(*p); + *p = tolower((unsigned char) (*p)); p++; } } @@ -115,7 +115,7 @@ void uppercase(char *str) { } p = str; while (*p != '\0') { - *p = toupper(*p); + *p = toupper((unsigned char) (*p)); p++; } } @@ -123,7 +123,7 @@ void uppercase(char *str) { char *lblanks(char *str) { char *p = str; while (*p != '\0') { - if (! isspace(*p)) { + if (! isspace((unsigned char) (*p))) { break; } p++; -- cgit v1.2.1