diff options
author | deraadt <deraadt@openbsd.org> | 2013-11-24 21:32:31 +0000 |
---|---|---|
committer | deraadt <deraadt@openbsd.org> | 2013-11-24 21:32:31 +0000 |
commit | 0c4db8c162e3fc65ffededbef1212e67215582ff (patch) | |
tree | fd5570ccb94cab6b8ed6b07ffd396382ab965fd6 /usr.sbin/mopd | |
parent | Add comments to ACS table matching terminfo(5). (diff) | |
download | wireguard-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.c | 6 |
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'; } |