summaryrefslogtreecommitdiff
path: root/usr.sbin/mrouted
diff options
context:
space:
mode:
authorplunky <plunky@NetBSD.org>2011-08-31 16:24:54 +0000
committerplunky <plunky@NetBSD.org>2011-08-31 16:24:54 +0000
commit4a1b34295eb5b40b5ca8a211ce311ce5416fa0e0 (patch)
tree4319e3566c3b4d77340b76fc390a6035c8ca1014 /usr.sbin/mrouted
parentd785c5f22db8c6d4c65f4a9d5538a68c63d3363b (diff)
NULL does not need a cast
Diffstat (limited to 'usr.sbin/mrouted')
-rw-r--r--usr.sbin/mrouted/kern.c6
-rw-r--r--usr.sbin/mrouted/main.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/mrouted/kern.c b/usr.sbin/mrouted/kern.c
index 36cf5aafe14..b1206dfe520 100644
--- a/usr.sbin/mrouted/kern.c
+++ b/usr.sbin/mrouted/kern.c
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.c,v 1.11 2011/02/23 01:23:03 dyoung Exp $ */
+/* $NetBSD: kern.c,v 1.12 2011/08/31 16:24:59 plunky Exp $ */
/*
* The mrouted program is covered by the license in the accompanying file
@@ -99,7 +99,7 @@ void k_init_dvmrp(void)
{
#ifdef OLD_KERNEL
if (setsockopt(igmp_socket, IPPROTO_IP, MRT_INIT,
- (char *)NULL, 0) < 0)
+ NULL, 0) < 0)
#else
int v=1;
@@ -113,7 +113,7 @@ void k_init_dvmrp(void)
void k_stop_dvmrp(void)
{
if (setsockopt(igmp_socket, IPPROTO_IP, MRT_DONE,
- (char *)NULL, 0) < 0)
+ NULL, 0) < 0)
logit(LOG_WARNING, errno, "can't disable Multicast routing in kernel");
}
diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c
index 9990bdfd24b..b2461346e36 100644
--- a/usr.sbin/mrouted/main.c
+++ b/usr.sbin/mrouted/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.24 2011/08/31 13:32:38 joerg Exp $ */
+/* $NetBSD: main.c,v 1.25 2011/08/31 16:24:59 plunky Exp $ */
/*
* The mrouted program is covered by the license in the accompanying file
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("@(#) $NetBSD: main.c,v 1.24 2011/08/31 13:32:38 joerg Exp $");
+__RCSID("@(#) $NetBSD: main.c,v 1.25 2011/08/31 16:24:59 plunky Exp $");
#endif
#include <ctype.h>
@@ -335,7 +335,7 @@ usage: fprintf(stderr,
#endif
accept_igmp(recvlen);
#ifdef SYSV
- (void)sigprocmask(SIG_SETMASK, &oblock, (sigset_t *)NULL);
+ (void)sigprocmask(SIG_SETMASK, &oblock, NULL);
#else
(void)sigsetmask(omask);
#endif
@@ -591,7 +591,7 @@ restart(int i)
init_installvifs();
#ifdef SYSV
- (void)sigprocmask(SIG_SETMASK, &oblock, (sigset_t *)NULL);
+ (void)sigprocmask(SIG_SETMASK, &oblock, NULL);
#else
(void)sigsetmask(omask);
#endif