summaryrefslogtreecommitdiff
path: root/usr.sbin/inetd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 17:24:30 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-11-23 17:24:30 +0000
commitfe21bfeb8049478b22aa0b5ad5d0ef4c33138899 (patch)
treeda4fee71e0f07e79a1386754cc47204f1a805361 /usr.sbin/inetd
parentd20eb38cb40d62fc45b2549425a8205865798cae (diff)
obvious unsigned char casts for ctype
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r--usr.sbin/inetd/inetd.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/inetd/inetd.c b/usr.sbin/inetd/inetd.c
index f6f53d85de3..64597bec4e7 100644
--- a/usr.sbin/inetd/inetd.c
+++ b/usr.sbin/inetd/inetd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inetd.c,v 1.136 2013/11/12 19:44:44 deraadt Exp $ */
+/* $OpenBSD: inetd.c,v 1.137 2013/11/23 17:24:29 deraadt Exp $ */
/*
* Copyright (c) 1983,1991 The Regents of the University of California.
@@ -766,7 +766,8 @@ doconfig(void)
/* XXX */
strncpy(protoname, sep->se_proto,
sizeof(protoname));
- if (isdigit(protoname[strlen(protoname) - 1]))
+ if (isdigit((unsigned char)
+ protoname[strlen(protoname) - 1]))
protoname[strlen(protoname) - 1] = '\0';
sp = getservbyname(sep->se_service,
protoname);
@@ -821,7 +822,8 @@ doconfig(void)
/* XXX */
strncpy(protoname, sep->se_proto,
sizeof(protoname));
- if (isdigit(protoname[strlen(protoname) - 1]))
+ if (isdigit((unsigned char)
+ protoname[strlen(protoname) - 1]))
protoname[strlen(protoname) - 1] = '\0';
sp = getservbyname(sep->se_service,
protoname);
@@ -1670,7 +1672,7 @@ initring(void)
endring = ring;
for (i = 0; i <= sizeof ring; ++i)
- if (isprint(i))
+ if (isprint((unsigned char)i))
*endring++ = i;
}