From 1ab8182e837778a2950c6ecf083f79002f6fa892 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 6 May 2010 16:54:46 +0000 Subject: While I am here, add more missing (unsigned char) casts to ctype() macros --- usr.bin/calendar/io.c | 2 +- usr.bin/calendar/parsedata.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c index d12783f..f1ba1ae 100644 --- a/usr.bin/calendar/io.c +++ b/usr.bin/calendar/io.c @@ -163,7 +163,7 @@ cal(void) continue; /* Trim spaces in front of the tab */ - while (isspace(pp[-1])) + while (isspace((unsigned char)pp[-1])) pp--; p = *pp; diff --git a/usr.bin/calendar/parsedata.c b/usr.bin/calendar/parsedata.c index 4fab640..6482fd3 100644 --- a/usr.bin/calendar/parsedata.c +++ b/usr.bin/calendar/parsedata.c @@ -872,7 +872,7 @@ isonlydigits(char *s, int nostar) for (i = 0; s[i] != '\0'; i++) { if (nostar == 0 && s[i] == '*' && s[i + 1] == '\0') return 1; - if (!isdigit(s[i])) + if (!isdigit((unsigned char)s[i])) return (0); } return (1); -- cgit v1.1