diff options
author | rsc <devnull@localhost> | 2005-09-09 23:16:15 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-09-09 23:16:15 +0000 |
commit | 3bd56b04a8bab7208494fd7dc74af5528fc41604 (patch) | |
tree | edf470d36f67c5726bc93f1b4bc185a516b888b9 /src/cmd/9660 | |
parent | 94d85bc000866ecb4874e0e5bdcf30de4a84862e (diff) | |
download | plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.gz plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.bz2 plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.zip |
NetBSD-macppc ctype needs uchars.
Diffstat (limited to 'src/cmd/9660')
-rw-r--r-- | src/cmd/9660/dump.c | 2 | ||||
-rw-r--r-- | src/cmd/9660/ichar.c | 3 | ||||
-rw-r--r-- | src/cmd/9660/util.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/cmd/9660/dump.c b/src/cmd/9660/dump.c index b77e9eb9..d3504ff9 100644 --- a/src/cmd/9660/dump.c +++ b/src/cmd/9660/dump.c @@ -456,7 +456,7 @@ static int isalldigit(char *s) { while(*s) - if(!isdigit(*s++)) + if(!isdigit((uchar)*s++)) return 0; return 1; } diff --git a/src/cmd/9660/ichar.c b/src/cmd/9660/ichar.c index 35b0c056..3b2b5367 100644 --- a/src/cmd/9660/ichar.c +++ b/src/cmd/9660/ichar.c @@ -25,8 +25,7 @@ isostring(uchar *buf, int len) while(len > 0 && p[len-1] == ' ') p[--len] = '\0'; for(q=p; *q; q++) - *q = tolower(*q); - + *q = tolower((uchar)*q); q = atom(p); free(p); return q; diff --git a/src/cmd/9660/util.c b/src/cmd/9660/util.c index 16fb21f3..ebf944e2 100644 --- a/src/cmd/9660/util.c +++ b/src/cmd/9660/util.c @@ -78,7 +78,7 @@ struprcpy(char *p, char *s) op = p; for(; *s; s++) - *p++ = toupper(*s); + *p++ = toupper((uchar)*s); *p = '\0'; return op; |