summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/diff
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-10-23 02:22:51 +0000
committerache <ache@FreeBSD.org>1997-10-23 02:22:51 +0000
commit1252945e3ac1c3d279a7d1efbd7a288ee87e136a (patch)
tree93c17efb1f4195ed3240e25b4bff9bc31dc7172a /gnu/usr.bin/diff
parent43e60f18ddba317beb57ef3cd328e3cc9bc75fc4 (diff)
downloadFreeBSD-src-1252945e3ac1c3d279a7d1efbd7a288ee87e136a.zip
FreeBSD-src-1252945e3ac1c3d279a7d1efbd7a288ee87e136a.tar.gz
Add (unsigned char) cast to ctype macros
Diffstat (limited to 'gnu/usr.bin/diff')
-rw-r--r--gnu/usr.bin/diff/system.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gnu/usr.bin/diff/system.h b/gnu/usr.bin/diff/system.h
index 47db287..e15a9f0 100644
--- a/gnu/usr.bin/diff/system.h
+++ b/gnu/usr.bin/diff/system.h
@@ -190,20 +190,20 @@ void *memchr ();
#if STDC_HEADERS
#define CTYPE_DOMAIN(c) 1
#else
-#define CTYPE_DOMAIN(c) ((unsigned) (c) <= 0177)
+#define CTYPE_DOMAIN(c) ((unsigned char) (c) <= 0177)
#endif
#ifndef ISPRINT
-#define ISPRINT(c) (CTYPE_DOMAIN (c) && isprint (c))
+#define ISPRINT(c) (CTYPE_DOMAIN (c) && isprint ((unsigned char)c))
#endif
#ifndef ISSPACE
-#define ISSPACE(c) (CTYPE_DOMAIN (c) && isspace (c))
+#define ISSPACE(c) (CTYPE_DOMAIN (c) && isspace ((unsigned char)c))
#endif
#ifndef ISUPPER
-#define ISUPPER(c) (CTYPE_DOMAIN (c) && isupper (c))
+#define ISUPPER(c) (CTYPE_DOMAIN (c) && isupper ((unsigned char)c))
#endif
#ifndef ISDIGIT
-#define ISDIGIT(c) ((unsigned) (c) - '0' <= 9)
+#define ISDIGIT(c) ((unsigned char) (c) - '0' <= 9)
#endif
#include <errno.h>
OpenPOWER on IntegriCloud