diff options
author | deraadt <deraadt@openbsd.org> | 2013-11-23 17:24:29 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2013-11-23 17:24:29 +0000 |
commit | af5650ac292b039e3912bed631b1cf60f6e0c04f (patch) | |
tree | 3476aae1715a1b702a022b89317dbaed9002e457 /usr.sbin/inetd | |
parent | unsigned char casts for ctype; ok jca (diff) | |
download | wireguard-openbsd-af5650ac292b039e3912bed631b1cf60f6e0c04f.tar.xz wireguard-openbsd-af5650ac292b039e3912bed631b1cf60f6e0c04f.zip |
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; } |