diff options
author | ume <ume@FreeBSD.org> | 2003-08-14 16:23:39 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-08-14 16:23:39 +0000 |
commit | 076d01ff60be6133bfc18b21616e3968c92e1d44 (patch) | |
tree | 3481d8dcd85dc1b483012981c84e0588f87f9312 | |
parent | 607bd5ea24a135a38b21fc7184ee6f878c946065 (diff) | |
download | FreeBSD-src-076d01ff60be6133bfc18b21616e3968c92e1d44.zip FreeBSD-src-076d01ff60be6133bfc18b21616e3968c92e1d44.tar.gz |
signal handler must take "int" arg.
Obtained from: KAME
MFC after: 1 week
-rw-r--r-- | usr.sbin/rtadvd/rtadvd.c | 9 |
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; } |