diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-21 15:54:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-21 15:54:47 +0000 |
commit | da0eb85667ace37db4ee0c23068caca3030d9827 (patch) | |
tree | 18efe03a97700948a6a7b8e1f89a5f623ff521d4 /bin/kill | |
parent | 52a4180aab8992aa7ddcd4f1d80e240a642bf836 (diff) |
add unsigned char casts for specific calls to ctype.h macros.
ok guenther step
Diffstat (limited to 'bin/kill')
-rw-r--r-- | bin/kill/kill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/kill/kill.c b/bin/kill/kill.c index 5edc6f1471a..26c0cd7fa2f 100644 --- a/bin/kill/kill.c +++ b/bin/kill/kill.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kill.c,v 1.10 2011/06/06 07:20:13 otto Exp $ */ +/* $OpenBSD: kill.c,v 1.11 2013/11/21 15:54:45 deraadt Exp $ */ /* $NetBSD: kill.c,v 1.11 1995/09/07 06:30:27 jtc Exp $ */ /* @@ -62,7 +62,7 @@ main(int argc, char *argv[]) if (argc > 1) usage(); if (argc == 1) { - if (!isdigit(**argv)) + if (!isdigit((unsigned char)**argv)) usage(); numsig = strtol(*argv, &ep, 10); if (*ep) @@ -92,10 +92,10 @@ main(int argc, char *argv[]) argc--, argv++; } else if (**argv == '-') { ++*argv; - if (isalpha(**argv)) { + if (isalpha((unsigned char)**argv)) { if ((numsig = signame_to_signum(*argv)) < 0) nosig(*argv); - } else if (isdigit(**argv)) { + } else if (isdigit((unsigned char)**argv)) { numsig = strtol(*argv, &ep, 10); if (*ep) errx(1, "illegal signal number: %s", *argv); |