From 0806572164232ad7ce769bc504ac9437f39433fe Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 21 Mar 2018 11:36:18 +0000 Subject: Use sig0_scan in trap.c --- src/execline/trap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/execline/trap.c b/src/execline/trap.c index dd6ae83..ea4a006 100644 --- a/src/execline/trap.c +++ b/src/execline/trap.c @@ -1,8 +1,7 @@ /* ISC license. */ -#include +#include /* for SKALIBS_NSIG to work */ #include -#include #include #include #include @@ -77,8 +76,8 @@ int main (int argc, char const **argv, char const *const *envp) while (i < (unsigned int)argc1) { int argc2 ; - unsigned int sig = (unsigned int)sig_number(argv[i] + (strncasecmp(argv[i], "sig", 3) ? 0 : 3)) ; - if (!sig && !uint0_scan(argv[i], &sig) && strcasecmp(argv[i], "timeout")) + int sig = 0 ; + if (!sig0_scan(argv[i], &sig) && strcasecmp(argv[i], "timeout")) strerr_dief3x(100, "unrecognized", " directive: ", argv[i]) ; argc2 = el_semicolon(argv + ++i) ; if (!argc2) -- cgit v1.2.3