aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/ndb
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-09-09 23:16:15 +0000
committerrsc <devnull@localhost>2005-09-09 23:16:15 +0000
commit3bd56b04a8bab7208494fd7dc74af5528fc41604 (patch)
treeedf470d36f67c5726bc93f1b4bc185a516b888b9 /src/cmd/ndb
parent94d85bc000866ecb4874e0e5bdcf30de4a84862e (diff)
downloadplan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.gz
plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.bz2
plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.zip
NetBSD-macppc ctype needs uchars.
Diffstat (limited to 'src/cmd/ndb')
-rw-r--r--src/cmd/ndb/ndbmkdb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/ndb/ndbmkdb.c b/src/cmd/ndb/ndbmkdb.c
index e19685a6..7796aace 100644
--- a/src/cmd/ndb/ndbmkdb.c
+++ b/src/cmd/ndb/ndbmkdb.c
@@ -31,7 +31,7 @@ isdk(char *name)
slash = 0;
for(; *name; name++){
- if(isalnum(*name))
+ if(isalnum((uchar)*name))
continue;
if(*name == '/'){
slash = 1;
@@ -52,7 +52,7 @@ isdomain(char *name)
int alpha = 0;
for(; *name; name++){
- if(isalpha(*name) || *name == '-'){
+ if(isalpha((uchar)*name) || *name == '-'){
alpha = 1;
continue;
}
@@ -60,7 +60,7 @@ isdomain(char *name)
dot = 1;
continue;
}
- if(isdigit(*name))
+ if(isdigit((uchar)*name))
continue;
return 0;
}
@@ -80,7 +80,7 @@ isip(char *name)
dot = 1;
continue;
}
- if(isdigit(*name))
+ if(isdigit((uchar)*name))
continue;
return 0;
}