summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-17 19:49:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-17 19:49:01 +0000
commitc55ddf58f562dd3d0ed78b353331172be9cef96e (patch)
tree87c28d5ee28b907960cd0239ff5b4f1f7be3b9d2
parent9f1c4df33671852145229625578d31837675ae6a (diff)
remove unused signal handler variable
-rw-r--r--usr.sbin/route6d/route6d.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/route6d/route6d.c b/usr.sbin/route6d/route6d.c
index 870e27954f0..01b2195fcda 100644
--- a/usr.sbin/route6d/route6d.c
+++ b/usr.sbin/route6d/route6d.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6d.c,v 1.19 2001/09/05 01:27:13 itojun Exp $ */
+/* $OpenBSD: route6d.c,v 1.20 2001/11/17 19:49:00 deraadt Exp $ */
/* $KAME: route6d.c,v 1.73 2001/09/05 01:12:34 itojun Exp $ */
/*
@@ -31,7 +31,7 @@
*/
#if 0
-static char _rcsid[] = "$OpenBSD: route6d.c,v 1.19 2001/09/05 01:27:13 itojun Exp $";
+static char _rcsid[] = "$OpenBSD: route6d.c,v 1.20 2001/11/17 19:49:00 deraadt Exp $";
#endif
#include <stdio.h>
@@ -201,7 +201,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;
@@ -462,7 +461,6 @@ main(argc, argv)
}
FD_COPY(&sockvec, &recvec);
- signo = 0;
switch (select(maxfd + 1, &recvec, 0, 0, 0)) {
case -1:
if (errno != EINTR) {
@@ -488,11 +486,10 @@ main(argc, argv)
}
void
-sighandler(sig)
- int sig;
+sighandler(signo)
+ int signo;
{
- signo = sig;
switch (signo) {
case SIGALRM:
seenalrm++;