diff options
author | glebius <glebius@FreeBSD.org> | 2013-03-15 12:55:30 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-03-15 12:55:30 +0000 |
commit | b37af62b9e1d9dc462e88e964b0c1012f8144495 (patch) | |
tree | e02d647183f66805ee3b2474493cabce43b2e580 /sys/compat | |
parent | d9a8b8e5e610631cff464a76929f0ff4de7dcff2 (diff) | |
download | FreeBSD-src-b37af62b9e1d9dc462e88e964b0c1012f8144495.zip FreeBSD-src-b37af62b9e1d9dc462e88e964b0c1012f8144495.tar.gz |
Use m_get/m_gethdr instead of compat macros.
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/compat')
-rw-r--r-- | sys/compat/ndis/kern_ndis.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/compat/ndis/kern_ndis.c b/sys/compat/ndis/kern_ndis.c index e094997..71b4b80 100644 --- a/sys/compat/ndis/kern_ndis.c +++ b/sys/compat/ndis/kern_ndis.c @@ -656,13 +656,9 @@ ndis_ptom(m0, p) for (buf = priv->npp_head; buf != NULL; buf = buf->mdl_next) { if (buf == priv->npp_head) -#ifdef MT_HEADER - MGETHDR(m, M_NOWAIT, MT_HEADER); -#else - MGETHDR(m, M_NOWAIT, MT_DATA); -#endif + m = m_gethdr(M_NOWAIT, MT_DATA); else - MGET(m, M_NOWAIT, MT_DATA); + m = m_get(M_NOWAIT, MT_DATA); if (m == NULL) { m_freem(*m0); *m0 = NULL; |