From bb7dca2f06a27da61587127320dfd73155c93700 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Wed, 21 Mar 2018 16:41:24 +0000 Subject: Remove sig_scan, bleh --- src/libstddjb/sig_scan.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 src/libstddjb/sig_scan.c (limited to 'src/libstddjb/sig_scan.c') diff --git a/src/libstddjb/sig_scan.c b/src/libstddjb/sig_scan.c deleted file mode 100644 index f037d8c..0000000 --- a/src/libstddjb/sig_scan.c +++ /dev/null @@ -1,34 +0,0 @@ -/* ISC license. */ - -#include -#include -#include -#include - -static size_t sig_scan_norec (char const *s, int *sig) -{ - int r = sig_number(s) ; - if (r) - { - *sig = r ; - return strlen(s) ; - } - { - unsigned int u ; - size_t len = uint_scan(s, &u) ; - if (len) *sig = u ; - return len ; - } -} - -size_t sig_scan (char const *s, int *sig) -{ - size_t len = sig_scan_norec(s, sig) ; - if (len) return len ; - if (!strncasecmp(s, "SIG", 3)) - { - len = sig_scan_norec(s+3, sig) ; - if (len) return 3+len ; - } - return 0 ; -} -- cgit v1.2.3