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/postscript | |
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/postscript')
-rw-r--r-- | src/cmd/postscript/common/common.c | 2 | ||||
-rw-r--r-- | src/cmd/postscript/tr2post/readDESC.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/cmd/postscript/common/common.c b/src/cmd/postscript/common/common.c index afcdb766..6ac567ec 100644 --- a/src/cmd/postscript/common/common.c +++ b/src/cmd/postscript/common/common.c @@ -93,7 +93,7 @@ pagelist(char *list) { start = 0; while ((c=*list) != '\0') { n = 0; - while (isdigit(c)) { + while (isdigit((uchar)c)) { n = n * 10 + c - '0'; c = *++list; } diff --git a/src/cmd/postscript/tr2post/readDESC.c b/src/cmd/postscript/tr2post/readDESC.c index 600fc174..366bae70 100644 --- a/src/cmd/postscript/tr2post/readDESC.c +++ b/src/cmd/postscript/tr2post/readDESC.c @@ -79,7 +79,7 @@ readDESC(void) { break; case 2: if (fontmnt <=0) { - if (!isdigit(*token)) { + if (!isdigit((uchar)*token)) { error(WARNING, "readdesc: expecting number of fonts in mount table.\n"); return(FALSE); } @@ -99,7 +99,7 @@ readDESC(void) { break; case 4: /* device resolution in dots per inch */ - if (!isdigit(*token)) { + if (!isdigit((uchar)*token)) { error(WARNING, "readdesc: expecting device resolution.\n"); return(FALSE); } @@ -116,7 +116,7 @@ readDESC(void) { break; case 7: /* unitwidth is the font size at which the character widths are 1:1 */ - if (!isdigit(*token)) { + if (!isdigit((uchar)*token)) { error(WARNING, "readdesc: expecting unitwidth.\n"); return(FALSE); } |