diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-23 17:24:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-23 17:24:30 +0000 |
commit | fe21bfeb8049478b22aa0b5ad5d0ef4c33138899 (patch) | |
tree | da4fee71e0f07e79a1386754cc47204f1a805361 /usr.sbin/inetd | |
parent | d20eb38cb40d62fc45b2549425a8205865798cae (diff) |
obvious unsigned char casts for ctype
Diffstat (limited to 'usr.sbin/inetd')
-rw-r--r-- | usr.sbin/inetd/inetd.c | 10 |
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; } |