diff options
author | rsc <devnull@localhost> | 2005-10-29 17:38:56 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-10-29 17:38:56 +0000 |
commit | 2b3a8c4d80c38ad7a93740856bde4d5f0b6dfbb9 (patch) | |
tree | 99ca1943cff5843d73b01614fff2871ef85a7d43 /src/cmd/vbackup | |
parent | 2222020e2212977d733b89e40f7829a71f319cf3 (diff) | |
download | plan9port-2b3a8c4d80c38ad7a93740856bde4d5f0b6dfbb9.tar.gz plan9port-2b3a8c4d80c38ad7a93740856bde4d5f0b6dfbb9.tar.bz2 plan9port-2b3a8c4d80c38ad7a93740856bde4d5f0b6dfbb9.zip |
uchar nonsense.
Diffstat (limited to 'src/cmd/vbackup')
-rw-r--r-- | src/cmd/vbackup/vnfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |