summaryrefslogtreecommitdiff
path: root/usr.bin/sdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 21:08:13 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-26 21:08:13 +0000
commitadd24db9795dd87127bdfcb25ea4e9d4701e1325 (patch)
tree7bc475b6af62fdfe4f9b4d34e728f939ffe573ee /usr.bin/sdiff
parent96ad4376bc5f964641b6f826e0b887ea43611c77 (diff)
unsigned char casts for ctype
ok okan
Diffstat (limited to 'usr.bin/sdiff')
-rw-r--r--usr.bin/sdiff/edit.c4
-rw-r--r--usr.bin/sdiff/sdiff.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/sdiff/edit.c b/usr.bin/sdiff/edit.c
index 8b0f522a4f6..386dc380ea6 100644
--- a/usr.bin/sdiff/edit.c
+++ b/usr.bin/sdiff/edit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: edit.c,v 1.19 2009/06/07 13:29:50 ray Exp $ */
+/* $OpenBSD: edit.c,v 1.20 2013/11/26 21:08:12 deraadt Exp $ */
/*
* Written by Raymond Lai <ray@cyth.net>.
@@ -88,7 +88,7 @@ eparse(const char *cmd, const char *left, const char *right)
char buf[BUFSIZ], *text;
/* Skip whitespace. */
- while (isspace(*cmd))
+ while (isspace((unsigned char)*cmd))
++cmd;
text = NULL;
diff --git a/usr.bin/sdiff/sdiff.c b/usr.bin/sdiff/sdiff.c
index 33bb6bf0eec..3866d7bc8d6 100644
--- a/usr.bin/sdiff/sdiff.c
+++ b/usr.bin/sdiff/sdiff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdiff.c,v 1.29 2013/04/01 16:08:00 tobias Exp $ */
+/* $OpenBSD: sdiff.c,v 1.30 2013/11/26 21:08:12 deraadt Exp $ */
/*
* Written by Raymond Lai <ray@cyth.net>.
@@ -427,7 +427,7 @@ prompt(const char *s1, const char *s2)
const char *p;
/* Skip leading whitespace. */
- for (p = cmd; isspace(*p); ++p)
+ for (p = cmd; isspace((unsigned char)*p); ++p)
;
switch (*p) {
@@ -585,7 +585,7 @@ parsecmd(FILE *diffpipe, FILE *file1, FILE *file2)
p = line;
/* Go to character after line number. */
- while (isdigit(*p))
+ while (isdigit((unsigned char)*p))
++p;
c = *p;
*p++ = 0;
@@ -598,7 +598,7 @@ parsecmd(FILE *diffpipe, FILE *file1, FILE *file2)
q = p;
/* Go to character after file2end. */
- while (isdigit(*p))
+ while (isdigit((unsigned char)*p))
++p;
c = *p;
*p++ = 0;
@@ -618,7 +618,7 @@ parsecmd(FILE *diffpipe, FILE *file1, FILE *file2)
q = p;
/* Go to character after line number. */
- while (isdigit(*p))
+ while (isdigit((unsigned char)*p))
++p;
c = *p;
*p++ = 0;