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/plumb | |
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/plumb')
-rw-r--r-- | src/cmd/plumb/rules.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/plumb/rules.c b/src/cmd/plumb/rules.c index be675329..f4e558ec 100644 --- a/src/cmd/plumb/rules.c +++ b/src/cmd/plumb/rules.c @@ -255,7 +255,7 @@ dollar(Exec *e, char *s, int *namelen) if(e!=nil && '0'<=s[0] && s[0]<='9') return nonnil(e->match[s[0]-'0']); - for(t=s; isalnum(*t); t++) + for(t=s; isalnum((uchar)*t); t++) ; n = t-s; *namelen = n; @@ -377,9 +377,9 @@ assignment(char *p) char *var, *qval; int n; - if(!isalpha(p[0])) + if(!isalpha((uchar)p[0])) return 0; - for(var=p; isalnum(*p); p++) + for(var=p; isalnum((uchar)*p); p++) ; n = p-var; while(*p==' ' || *p=='\t') |