summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.sbin/route6d/route6d.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index 904c0bc..9b2aa1f 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -209,7 +209,6 @@ int logopened = 0;
static u_long seq = 0;
-volatile int signo;
volatile sig_atomic_t seenalrm;
volatile sig_atomic_t seenquit;
volatile sig_atomic_t seenusr1;
@@ -464,7 +463,6 @@ main(argc, argv)
continue;
}
- signo = 0;
#ifdef HAVE_POLL_H
switch (poll(set, 2, INFTIM))
#else
@@ -506,11 +504,10 @@ main(argc, argv)
}
void
-sighandler(sig)
- int sig;
+sighandler(signo)
+ int signo;
{
- signo = sig;
switch (signo) {
case SIGALRM:
seenalrm++;
OpenPOWER on IntegriCloud