diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-06-06 19:32:48 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-06-06 19:32:48 +0000 |
commit | 6c48995c9876b84d5168a2e24030cf76f0a39236 (patch) | |
tree | de1d6708820fb6088ef8733a01fb8109d1d4add4 /sys | |
parent | 44da2913e5064269bba9091adf6dd1be4bf3a202 (diff) | |
download | FreeBSD-src-6c48995c9876b84d5168a2e24030cf76f0a39236.zip FreeBSD-src-6c48995c9876b84d5168a2e24030cf76f0a39236.tar.gz |
When setting fragment queue pointers to NULL, or comparing them with
NULL, use NULL rather than 0 to improve readability.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/ip_input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index c0b53de..7f9195a 100644 --- a/sys/netinet/ip_input.c +++ b/sys/netinet/ip_input.c @@ -753,7 +753,7 @@ ours: ip->ip_p == fp->ipq_p) goto found; - fp = 0; + fp = NULL; /* * Enforce upper bound on number of fragmented packets @@ -977,7 +977,7 @@ ip_reass(struct mbuf *m, struct ipqhead *head, struct ipq *fp, /* * If first fragment to arrive, create a reassembly queue. */ - if (fp == 0) { + if (fp == NULL) { if ((t = m_get(M_DONTWAIT, MT_FTABLE)) == NULL) goto dropfrag; fp = mtod(t, struct ipq *); @@ -1177,7 +1177,7 @@ dropfrag: *divert_rule = 0; #endif ipstat.ips_fragdropped++; - if (fp != 0) + if (fp != NULL) fp->ipq_nfrags--; m_freem(m); return (0); |