From 2b3a8c4d80c38ad7a93740856bde4d5f0b6dfbb9 Mon Sep 17 00:00:00 2001 From: rsc Date: Sat, 29 Oct 2005 17:38:56 +0000 Subject: uchar nonsense. --- src/cmd/vbackup/vnfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cmd/vbackup') diff --git a/src/cmd/vbackup/vnfs.c b/src/cmd/vbackup/vnfs.c index f006419b..ad43b250 100644 --- a/src/cmd/vbackup/vnfs.c +++ b/src/cmd/vbackup/vnfs.c @@ -550,7 +550,7 @@ parseipandmask(char *s, uchar *ip, uchar *mask) if(p == nil) memset(mask, 0xFF, IPaddrlen); else{ - if(isdigit(*p) && strtol(p, &q, 10)>=0 && *q==0) + if(isdigit((uchar)*p) && strtol(p, &q, 10)>=0 && *q==0) *--p = '/'; if(parseipmask(mask, p) == ~0UL) return -1; @@ -580,7 +580,7 @@ parsetime(char *s, ulong *time) if(strlen(s) != 14 || s[4] != '/' || s[9] != '/') return -1; for(i=0; i<4; i++) - if(!isdigit(s[i]) || !isdigit(s[i+5]) || !isdigit(s[i+10])) + if(!isdigit((uchar)s[i]) || !isdigit((uchar)s[i+5]) || !isdigit((uchar)s[i+10])) return -1; memset(&tm, 0, sizeof tm); tm.year = atoi(s)-1900; -- cgit v1.2.3