diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-28 18:26:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-28 18:26:48 +0000 |
commit | 1c36bcedb109c90481f69c31953f7d4e174af0a5 (patch) | |
tree | 07bbc23f45623f465e3f081736172c26005b0bb6 /usr.sbin/eeprom | |
parent | 9ded258538048c1f43dc85086860c61c35922e09 (diff) |
unsigned char for ctype
ok okan krw
Diffstat (limited to 'usr.sbin/eeprom')
-rw-r--r-- | usr.sbin/eeprom/eehandlers.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/eeprom/eehandlers.c b/usr.sbin/eeprom/eehandlers.c index 8eacc6c5ae1..5940846df24 100644 --- a/usr.sbin/eeprom/eehandlers.c +++ b/usr.sbin/eeprom/eehandlers.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eehandlers.c,v 1.15 2008/06/26 05:42:21 ray Exp $ */ +/* $OpenBSD: eehandlers.c,v 1.16 2013/11/28 18:26:47 deraadt Exp $ */ /* $NetBSD: eehandlers.c,v 1.2 1996/02/28 01:13:22 thorpej Exp $ */ /*- @@ -123,7 +123,7 @@ ee_num8(struct keytabent *ktent, char *arg) if (arg) { for (i = 0; i < (strlen(arg) - 1); ++i) - if (!isdigit(arg[i])) + if (!isdigit((unsigned char)arg[i])) BARF(ktent); num32 = atoi(arg); if (num32 > 0xff) @@ -147,7 +147,7 @@ ee_num16(struct keytabent *ktent, char *arg) if (arg) { for (i = 0; i < (strlen(arg) - 1); ++i) - if (!isdigit(arg[i])) + if (!isdigit((unsigned char)arg[i])) BARF(ktent); num32 = atoi(arg); if (num32 > 0xffff) @@ -321,7 +321,7 @@ ee_kbdtype(struct keytabent *ktent, char *arg) if (arg) { for (i = 0; i < (strlen(arg) - 1); ++i) - if (!isdigit(arg[i])) + if (!isdigit((unsigned char)arg[i])) BARF(ktent); kbd2 = atoi(arg); if (kbd2 > 0xff) |