aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/diff
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/diff
parent94d85bc000866ecb4874e0e5bdcf30de4a84862e (diff)
downloadplan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.gz
plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.tar.bz2
plan9port-3bd56b04a8bab7208494fd7dc74af5528fc41604.zip
NetBSD-macppc ctype needs uchars.
Diffstat (limited to 'src/cmd/diff')
-rw-r--r--src/cmd/diff/diffio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/diff/diffio.c b/src/cmd/diff/diffio.c
index 640f2d2b..f522ec71 100644
--- a/src/cmd/diff/diffio.c
+++ b/src/cmd/diff/diffio.c
@@ -82,7 +82,7 @@ readhash(Biobuf *bp, char *buf)
* coalesce multiple white-space
*/
for (space = 0; len--; p++) {
- if (isspace(*p)) {
+ if (isspace((uchar)*p)) {
space++;
continue;
}
@@ -99,7 +99,7 @@ readhash(Biobuf *bp, char *buf)
* strip all white-space
*/
while (len--) {
- if (isspace(*p)) {
+ if (isspace((uchar)*p)) {
p++;
continue;
}
@@ -167,7 +167,7 @@ squishspace(char *buf)
int space;
for (space = 0, q = p = buf; *q; q++) {
- if (isspace(*q)) {
+ if (isspace((uchar)*q)) {
space++;
continue;
}