summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authoreivind <eivind@FreeBSD.org>1999-12-21 11:14:12 +0000
committereivind <eivind@FreeBSD.org>1999-12-21 11:14:12 +0000
commit8befc1a2b84269c73c5f4bb55d5961c9c1e64866 (patch)
treeaa42526cc605d366c46f08ae42d166e1905b2fe7 /sys/netinet
parentd6a0d6a22e9b0ac0457c1471bc84b9240b8b5242 (diff)
downloadFreeBSD-src-8befc1a2b84269c73c5f4bb55d5961c9c1e64866.zip
FreeBSD-src-8befc1a2b84269c73c5f4bb55d5961c9c1e64866.tar.gz
Change incorrect NULLs to 0s
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/in_pcb.c10
-rw-r--r--sys/netinet/udp_usrreq.c2
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 71d091b..b3f6d61 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -662,7 +662,7 @@ in_pcbnotify(head, dst, fport_arg, laddr, lport_arg, cmd, notify)
s = splnet();
for (inp = head->lh_first; inp != NULL;) {
#ifdef INET6
- if ((inp->inp_vflag & INP_IPV4) == NULL) {
+ if ((inp->inp_vflag & INP_IPV4) == 0) {
inp = LIST_NEXT(inp, inp_list);
continue;
}
@@ -759,7 +759,7 @@ in_pcblookup_local(pcbinfo, laddr, lport_arg, wild_okay)
head = &pcbinfo->hashbase[INP_PCBHASH(INADDR_ANY, lport, 0, pcbinfo->hashmask)];
for (inp = head->lh_first; inp != NULL; inp = inp->inp_hash.le_next) {
#ifdef INET6
- if ((inp->inp_vflag & INP_IPV4) == NULL)
+ if ((inp->inp_vflag & INP_IPV4) == 0)
continue;
#endif
if (inp->inp_faddr.s_addr == INADDR_ANY &&
@@ -800,7 +800,7 @@ in_pcblookup_local(pcbinfo, laddr, lport_arg, wild_okay)
inp = inp->inp_portlist.le_next) {
wildcard = 0;
#ifdef INET6
- if ((inp->inp_vflag & INP_IPV4) == NULL)
+ if ((inp->inp_vflag & INP_IPV4) == 0)
continue;
#endif
if (inp->inp_faddr.s_addr != INADDR_ANY)
@@ -849,7 +849,7 @@ in_pcblookup_hash(pcbinfo, faddr, fport_arg, laddr, lport_arg, wildcard,
head = &pcbinfo->hashbase[INP_PCBHASH(faddr.s_addr, lport, fport, pcbinfo->hashmask)];
for (inp = head->lh_first; inp != NULL; inp = inp->inp_hash.le_next) {
#ifdef INET6
- if ((inp->inp_vflag & INP_IPV4) == NULL)
+ if ((inp->inp_vflag & INP_IPV4) == 0)
continue;
#endif
if (inp->inp_faddr.s_addr == faddr.s_addr &&
@@ -871,7 +871,7 @@ in_pcblookup_hash(pcbinfo, faddr, fport_arg, laddr, lport_arg, wildcard,
head = &pcbinfo->hashbase[INP_PCBHASH(INADDR_ANY, lport, 0, pcbinfo->hashmask)];
for (inp = head->lh_first; inp != NULL; inp = inp->inp_hash.le_next) {
#ifdef INET6
- if ((inp->inp_vflag & INP_IPV4) == NULL)
+ if ((inp->inp_vflag & INP_IPV4) == 0)
continue;
#endif
if (inp->inp_faddr.s_addr == INADDR_ANY &&
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 03e0ab7..bc854de 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -251,7 +251,7 @@ udp_input(m, off, proto)
#endif
LIST_FOREACH(inp, &udb, inp_list) {
#ifdef INET6
- if ((inp->inp_vflag & INP_IPV4) == NULL)
+ if ((inp->inp_vflag & INP_IPV4) == 0)
continue;
#endif
if (inp->inp_lport != uh->uh_dport)
OpenPOWER on IntegriCloud