summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtsold
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-08-14 15:57:52 +0000
committerume <ume@FreeBSD.org>2003-08-14 15:57:52 +0000
commit5c5187dc96124cd98f1532d3c5f756c2f10276b5 (patch)
tree6e8deac3383a65c43944880c9d705de336c06dd3 /usr.sbin/rtsold
parenta5c1661ac164bdfab57d29dd9c50a90ae129516f (diff)
downloadFreeBSD-src-5c5187dc96124cd98f1532d3c5f756c2f10276b5.zip
FreeBSD-src-5c5187dc96124cd98f1532d3c5f756c2f10276b5.tar.gz
signal handler must take "int" arg.
Obtained from: KAME MFC after: 1 week
Diffstat (limited to 'usr.sbin/rtsold')
-rw-r--r--usr.sbin/rtsold/rtsold.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c
index 4895c37..36ecb30 100644
--- a/usr.sbin/rtsold/rtsold.c
+++ b/usr.sbin/rtsold/rtsold.c
@@ -71,7 +71,7 @@ char *otherconf_script;
#define MAX_RTR_SOLICITATIONS 3 /* times */
/*
- * implementation dependent constants in secondes
+ * implementation dependent constants in seconds
* XXX: should be configurable
*/
#define PROBE_INTERVAL 60
@@ -109,7 +109,7 @@ static void TIMEVAL_ADD __P((struct timeval *, struct timeval *,
static void TIMEVAL_SUB __P((struct timeval *, struct timeval *,
struct timeval *));
-static void rtsold_set_dump_file __P((void));
+static void rtsold_set_dump_file __P((int));
static void usage __P((char *));
static char **autoifprobe __P((void));
@@ -227,10 +227,7 @@ main(argc, argv)
warnx("kernel is configured as a router, not a host");
/* initialization to dump internal status to a file */
- if (signal(SIGUSR1, (void *)rtsold_set_dump_file) < 0) {
- errx(1, "failed to set signal for dump status");
- /*NOTREACHED*/
- }
+ signal(SIGUSR1, rtsold_set_dump_file);
/*
* Open a socket for sending RS and receiving RA.
@@ -712,7 +709,8 @@ TIMEVAL_SUB(struct timeval *a, struct timeval *b, struct timeval *result)
}
static void
-rtsold_set_dump_file()
+rtsold_set_dump_file(sig)
+ int sig;
{
do_dump = 1;
}
OpenPOWER on IntegriCloud