From 042bbfa3b599531199239df3c3e9fc0ae1cf3df4 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 6 Jun 2003 19:32:48 +0000 Subject: [PATCH] When setting fragment queue pointers to NULL, or comparing them with NULL, use NULL rather than 0 to improve readability. --- sys/netinet/ip_input.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c index c0b53de002ee..7f9195aa0eb1 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);