aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/db
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/db
parent94d85bc000866ecb4874e0e5bdcf30de4a84862e (diff)
downloadplan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.gz
plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.bz2
plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.zip
NetBSD-macppc ctype needs uchars.
Diffstat (limited to 'src/cmd/db')
-rw-r--r--src/cmd/db/format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/db/format.c b/src/cmd/db/format.c
index ef053646..c2b352bc 100644
--- a/src/cmd/db/format.c
+++ b/src/cmd/db/format.c
@@ -22,11 +22,11 @@ scanform(long icount, int prt, char *ifp, Map *map, int literal)
savdot=dot;
/*now loop over format*/
while (*fp) {
- if (!isdigit(*fp))
+ if (!isdigit((uchar)*fp))
fcount = 1;
else {
fcount = 0;
- while (isdigit(c = *fp++)) {
+ while (isdigit((uchar)c = *fp++)) {
fcount *= 10;
fcount += c-'0';
}