summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-07-03 03:33:17 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-07-03 03:33:17 +0000
commite7a8fb489ca96714af9e15f1d6cc558efd9f9b04 (patch)
tree18751f91a908b225060a875e834cdd32fedba45d /sys/kern
parenta055ac9916564a829f99d4ab4b7e4ac33214b621 (diff)
replace 0 with equivalent allocation flag. ok thib
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/uipc_mbuf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 9940151a3e0..0d0d9820792 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.140 2010/07/02 02:40:16 blambert Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.141 2010/07/03 03:33:16 tedu Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -196,7 +196,7 @@ m_get(int nowait, int type)
int s;
s = splnet();
- m = pool_get(&mbpool, nowait == M_WAIT ? PR_WAITOK : 0);
+ m = pool_get(&mbpool, nowait == M_WAIT ? PR_WAITOK : PR_NOWAIT);
if (m)
mbstat.m_mtypes[type]++;
splx(s);
@@ -221,7 +221,7 @@ m_gethdr(int nowait, int type)
int s;
s = splnet();
- m = pool_get(&mbpool, nowait == M_WAIT ? PR_WAITOK : 0);
+ m = pool_get(&mbpool, nowait == M_WAIT ? PR_WAITOK : PR_NOWAIT);
if (m)
mbstat.m_mtypes[type]++;
splx(s);
@@ -413,7 +413,7 @@ m_clget(struct mbuf *m, int how, struct ifnet *ifp, u_int pktlen)
m = m0;
}
m->m_ext.ext_buf = pool_get(&mclpools[pi],
- how == M_WAIT ? PR_WAITOK : 0);
+ how == M_WAIT ? PR_WAITOK : PR_NOWAIT);
if (!m->m_ext.ext_buf) {
if (m0)
m_freem(m0);