Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Use NULL instead of 0 for pointers
details: https://anonhg.NetBSD.org/src/rev/969afc472cd1
branches: trunk
changeset: 338393:969afc472cd1
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Thu May 21 09:27:10 2015 +0000
description:
Use NULL instead of 0 for pointers
diffstat:
sys/netinet/if_arp.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 11e3f7bf7242 -r 969afc472cd1 sys/netinet/if_arp.c
--- a/sys/netinet/if_arp.c Thu May 21 09:26:18 2015 +0000
+++ b/sys/netinet/if_arp.c Thu May 21 09:27:10 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_arp.c,v 1.166 2015/05/21 09:26:18 ozaki-r Exp $ */
+/* $NetBSD: if_arp.c,v 1.167 2015/05/21 09:27:10 ozaki-r Exp $ */
/*-
* Copyright (c) 1998, 2000, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.166 2015/05/21 09:26:18 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_arp.c,v 1.167 2015/05/21 09:27:10 ozaki-r Exp $");
#include "opt_ddb.h"
#include "opt_inet.h"
@@ -393,7 +393,7 @@
nla = LIST_NEXT(la, la_list);
mold = la->la_hold;
- la->la_hold = 0;
+ la->la_hold = NULL;
if (mold) {
m_freem(mold);
@@ -742,7 +742,7 @@
s = splnet();
mold = la->la_hold;
- la->la_hold = 0;
+ la->la_hold = NULL;
splx(s);
if (mold)
@@ -923,7 +923,7 @@
s = splnet();
IF_DEQUEUE(&arpintrq, m);
splx(s);
- if (m == 0 || (m->m_flags & M_PKTHDR) == 0)
+ if (m == NULL || (m->m_flags & M_PKTHDR) == 0)
panic("arpintr");
MCLAIM(m, &arpdomain.dom_mowner);
@@ -1243,7 +1243,7 @@
s = splnet();
mold = la->la_hold;
- la->la_hold = 0;
+ la->la_hold = NULL;
splx(s);
if (mold) {
Home |
Main Index |
Thread Index |
Old Index