diff options
-rw-r--r-- | bin/kill/Makefile | 2 | ||||
-rw-r--r-- | bin/kill/kill.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/kill/Makefile b/bin/kill/Makefile index 55ef16d..c05caf6 100644 --- a/bin/kill/Makefile +++ b/bin/kill/Makefile @@ -3,4 +3,6 @@ PROG= kill +WARNS= 2 + .include <bsd.prog.mk> diff --git a/bin/kill/kill.c b/bin/kill/kill.c index 9de184f..45be37d 100644 --- a/bin/kill/kill.c +++ b/bin/kill/kill.c @@ -53,6 +53,7 @@ static const char rcsid[] = #include <stdlib.h> #include <string.h> +int main __P((int, char *[])); void nosig __P((char *)); void printsignals __P((FILE *)); int signame_to_signum __P((char *)); @@ -144,7 +145,7 @@ signame_to_signum(sig) { int n; - if (!strncasecmp(sig, "sig", 3)) + if (!strncasecmp(sig, "sig", (size_t)3)) sig += 3; for (n = 1; n < NSIG; n++) { if (!strcasecmp(sys_signame[n], sig)) |