summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtadvd
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-08-14 16:23:39 +0000
committerume <ume@FreeBSD.org>2003-08-14 16:23:39 +0000
commit076d01ff60be6133bfc18b21616e3968c92e1d44 (patch)
tree3481d8dcd85dc1b483012981c84e0588f87f9312 /usr.sbin/rtadvd
parent607bd5ea24a135a38b21fc7184ee6f878c946065 (diff)
downloadFreeBSD-src-076d01ff60be6133bfc18b21616e3968c92e1d44.zip
FreeBSD-src-076d01ff60be6133bfc18b21616e3968c92e1d44.tar.gz
signal handler must take "int" arg.
Obtained from: KAME MFC after: 1 week
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r--usr.sbin/rtadvd/rtadvd.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/rtadvd/rtadvd.c b/usr.sbin/rtadvd/rtadvd.c
index 7fd0c0d..5d7a3eb 100644
--- a/usr.sbin/rtadvd/rtadvd.c
+++ b/usr.sbin/rtadvd/rtadvd.c
@@ -138,7 +138,7 @@ static int nd6_options __P((struct nd_opt_hdr *, int,
static void free_ndopts __P((union nd_opts *));
static void ra_output __P((struct rainfo *));
static void rtmsg_input __P((void));
-static void rtadvd_set_dump_file __P((void));
+static void rtadvd_set_dump_file __P((int));
int
main(argc, argv)
@@ -258,8 +258,8 @@ main(argc, argv)
if (rtsock >= 0)
FD_SET(rtsock, fdsetp);
- signal(SIGTERM, (void *)set_die);
- signal(SIGUSR1, (void *)rtadvd_set_dump_file);
+ signal(SIGTERM, set_die);
+ signal(SIGUSR1, rtadvd_set_dump_file);
while (1) {
memcpy(selectfdp, fdsetp, fdmasks); /* reinitialize */
@@ -308,7 +308,8 @@ main(argc, argv)
}
static void
-rtadvd_set_dump_file()
+rtadvd_set_dump_file(sig)
+ int sig;
{
do_dump = 1;
}
OpenPOWER on IntegriCloud