Module Name: src
Committed By: christos
Date: Tue Oct 8 19:59:49 UTC 2013
Modified Files:
src/sys/kern: uipc_mbuf2.c
Log Message:
MGET -> m_get
To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/kern/uipc_mbuf2.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/uipc_mbuf2.c
diff -u src/sys/kern/uipc_mbuf2.c:1.29 src/sys/kern/uipc_mbuf2.c:1.30
--- src/sys/kern/uipc_mbuf2.c:1.29 Mon Aug 8 15:10:33 2011
+++ src/sys/kern/uipc_mbuf2.c Tue Oct 8 15:59:49 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf2.c,v 1.29 2011/08/08 19:10:33 dyoung Exp $ */
+/* $NetBSD: uipc_mbuf2.c,v 1.30 2013/10/08 19:59:49 christos Exp $ */
/* $KAME: uipc_mbuf2.c,v 1.29 2001/02/14 13:42:10 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf2.c,v 1.29 2011/08/08 19:10:33 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uipc_mbuf2.c,v 1.30 2013/10/08 19:59:49 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -192,7 +192,7 @@ m_pulldown(struct mbuf *m, int off, int
* now, we need to do the hard way. don't m_copy as there's no room
* on both end.
*/
- MGET(o, M_DONTWAIT, m->m_type);
+ o = m_get(M_DONTWAIT, m->m_type);
if (o && len > MLEN) {
MCLGET(o, M_DONTWAIT);
if ((o->m_flags & M_EXT) == 0) {
@@ -237,9 +237,9 @@ m_getcl(int how, int type, int flags)
struct mbuf *mp;
if ((flags & M_PKTHDR) != 0)
- MGETHDR(mp, how, type);
+ mp = m_gethdr(how, type);
else
- MGET(mp, how, type);
+ mp = m_get(how, type);
if (mp == NULL)
return NULL;