commit 3c2e38ff8234afc2fcbc0ffa496107e58ee9504e
parent 6921a5bdcbe933e0938991f5a49e36268168460f
Author: sin <sin@2f30.org>
Date: Sat, 30 Jul 2016 10:08:17 +0100
No need to check for signal(3) failure.
If it fails, the system is baked anyway and shouldn't really
stop sbm from working.
Diffstat:
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/sbm.c b/sbm.c
@@ -282,13 +282,6 @@ printrxtx(int sig)
}
void
-setsiginfo(void)
-{
- if (signal(SIGINFO, printrxtx) == SIG_ERR)
- err(1, "signal");
-}
-
-void
usage(void)
{
fprintf(stderr, "usage: %s [-B | -t] [-c count] [-d delay] [-i interface]\n", argv0);
@@ -331,7 +324,7 @@ main(int argc, char *argv[])
} ARGEND
ifname = ifn;
- setsiginfo();
+ signal(SIGINFO, printrxtx);
ms2tv(&tv, delay);
scan();
loop(count, &tv);