summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2014-04-21 11:10:55 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2014-04-21 11:10:55 +0000
commit72db62ba641f18218b24986c24fed35a87c901f3 (patch)
tree81c7576fe1ff945724800630ba86c40f97602b83 /sys/kern
parenta7646c72d921d269b3b42c1b9cc50aec5263af76 (diff)
we'll do fine without casting NULL to struct foo * / void *
ok gcc & md5 (alas, no binary change)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_mbuf.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index dfa456b1b2b..d6f253f0126 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.181 2014/04/14 09:06:41 mpi Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.182 2014/04/21 11:10:54 henning Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -222,8 +222,8 @@ m_get(int nowait, int type)
splx(s);
if (m) {
m->m_type = type;
- m->m_next = (struct mbuf *)NULL;
- m->m_nextpkt = (struct mbuf *)NULL;
+ m->m_next = NULL;
+ m->m_nextpkt = NULL;
m->m_data = m->m_dat;
m->m_flags = 0;
}
@@ -249,8 +249,8 @@ m_gethdr(int nowait, int type)
m->m_type = type;
/* keep in sync with m_inithdr */
- m->m_next = (struct mbuf *)NULL;
- m->m_nextpkt = (struct mbuf *)NULL;
+ m->m_next = NULL;
+ m->m_nextpkt = NULL;
m->m_data = m->m_pktdat;
m->m_flags = M_PKTHDR;
bzero(&m->m_pkthdr, sizeof(m->m_pkthdr));
@@ -263,8 +263,8 @@ struct mbuf *
m_inithdr(struct mbuf *m)
{
/* keep in sync with m_gethdr */
- m->m_next = (struct mbuf *)NULL;
- m->m_nextpkt = (struct mbuf *)NULL;
+ m->m_next = NULL;
+ m->m_nextpkt = NULL;
m->m_data = m->m_pktdat;
m->m_flags = M_PKTHDR;
bzero(&m->m_pkthdr, sizeof(m->m_pkthdr));