summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/net/if.c4
-rw-r--r--sys/netinet/in.c4
-rw-r--r--sys/netinet6/mld6.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index f013a8f..9a717c8 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1744,7 +1744,7 @@ if_addmulti(struct ifnet *ifp, struct sockaddr *sa, struct ifmultiaddr **retifma
ifma->ifma_lladdr = llsa;
ifma->ifma_ifp = ifp;
ifma->ifma_refcount = 1;
- ifma->ifma_protospec = 0;
+ ifma->ifma_protospec = NULL;
rt_newmaddrmsg(RTM_NEWMADDR, ifma);
/*
@@ -1774,7 +1774,7 @@ if_addmulti(struct ifnet *ifp, struct sockaddr *sa, struct ifmultiaddr **retifma
ifma->ifma_lladdr = NULL;
ifma->ifma_ifp = ifp;
ifma->ifma_refcount = 1;
- ifma->ifma_protospec = 0;
+ ifma->ifma_protospec = NULL;
s = splimp();
TAILQ_INSERT_HEAD(&ifp->if_multiaddrs, ifma, ifma_link);
splx(s);
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index f7c49a0..6c7893c 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -958,7 +958,7 @@ in_addmulti(ap, ifp)
* If ifma->ifma_protospec is null, then if_addmulti() created
* a new record. Otherwise, we are done.
*/
- if (ifma->ifma_protospec != 0) {
+ if (ifma->ifma_protospec != NULL) {
splx(s);
return ifma->ifma_protospec;
}
@@ -1006,7 +1006,7 @@ in_delmulti(inm)
* the interface and nuke the packet.
*/
my_inm = *inm ;
- ifma->ifma_protospec = 0;
+ ifma->ifma_protospec = NULL;
LIST_REMOVE(inm, inm_link);
free(inm, M_IPMADDR);
}
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index 2969c99..5e90d05 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -510,7 +510,7 @@ in6_addmulti(maddr6, ifp, errorp)
* If ifma->ifma_protospec is null, then if_addmulti() created
* a new record. Otherwise, we are done.
*/
- if (ifma->ifma_protospec != 0) {
+ if (ifma->ifma_protospec != NULL) {
splx(s);
return ifma->ifma_protospec;
}
@@ -556,7 +556,7 @@ in6_delmulti(in6m)
* that we are leaving the multicast group.
*/
mld6_stop_listening(in6m);
- ifma->ifma_protospec = 0;
+ ifma->ifma_protospec = NULL;
LIST_REMOVE(in6m, in6m_entry);
free(in6m, M_IPMADDR);
}
OpenPOWER on IntegriCloud