summaryrefslogtreecommitdiffstats
path: root/usr.bin/calendar/parsedata.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2010-05-06 16:54:46 +0000
committerache <ache@FreeBSD.org>2010-05-06 16:54:46 +0000
commit1ab8182e837778a2950c6ecf083f79002f6fa892 (patch)
treefffa42232b93f92d34843987bc1a8b77f16c535e /usr.bin/calendar/parsedata.c
parent4b98b3d3203f8e23130597b9b6ab9f1487ba69e6 (diff)
downloadFreeBSD-src-1ab8182e837778a2950c6ecf083f79002f6fa892.zip
FreeBSD-src-1ab8182e837778a2950c6ecf083f79002f6fa892.tar.gz
While I am here, add more missing (unsigned char) casts to ctype() macros
Diffstat (limited to 'usr.bin/calendar/parsedata.c')
-rw-r--r--usr.bin/calendar/parsedata.c2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud