From 5c5187dc96124cd98f1532d3c5f756c2f10276b5 Mon Sep 17 00:00:00 2001 From: ume Date: Thu, 14 Aug 2003 15:57:52 +0000 Subject: signal handler must take "int" arg. Obtained from: KAME MFC after: 1 week --- usr.sbin/rtsold/rtsold.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'usr.sbin/rtsold/rtsold.c') 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; } -- cgit v1.1