summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mopd
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-11-24 21:32:31 +0000
committerderaadt <deraadt@openbsd.org>2013-11-24 21:32:31 +0000
commit0c4db8c162e3fc65ffededbef1212e67215582ff (patch)
treefd5570ccb94cab6b8ed6b07ffd396382ab965fd6 /usr.sbin/mopd
parentAdd comments to ACS table matching terminfo(5). (diff)
downloadwireguard-openbsd-0c4db8c162e3fc65ffededbef1212e67215582ff.tar.xz
wireguard-openbsd-0c4db8c162e3fc65ffededbef1212e67215582ff.zip
more ctype cleanups
checked by jca
Diffstat (limited to 'usr.sbin/mopd')
-rw-r--r--usr.sbin/mopd/common/device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mopd/common/device.c b/usr.sbin/mopd/common/device.c
index 35f0728652d..8aeb17b640e 100644
--- a/usr.sbin/mopd/common/device.c
+++ b/usr.sbin/mopd/common/device.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: device.c,v 1.15 2013/07/05 21:02:07 miod Exp $ */
+/* $OpenBSD: device.c,v 1.16 2013/11/24 21:32:31 deraadt Exp $ */
/*
* Copyright (c) 1993-95 Mats O Jansson. All rights reserved.
@@ -139,10 +139,10 @@ deviceInitOne(char *ifname)
unit = 0;
for (j = 0; j < strlen(ifname); j++) {
- if (isalpha(ifname[j]))
+ if (isalpha((unsigned char)ifname[j]))
dev[j] = ifname[j];
else
- if (isdigit(ifname[j])) {
+ if (isdigit((unsigned char)ifname[j])) {
unit = unit * 10 + ifname[j] - '0';
dev[j] = '\0';
}