diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-11-24 15:06:56 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2008-11-24 15:06:56 +0000 |
commit | c59d7834281c17ca8f43704e46d9c7c671fa63fc (patch) | |
tree | 09d71c07f7158a508343b65d2c7860dcef5727df | |
parent | 74a4ab731e6fbdb7c7c0f344f8a826c3834d0f2a (diff) |
Let MRESETDATA follow MEXTMALLOC. That macro is way to dangerous but luckily
it is unused.
-rw-r--r-- | sys/sys/mbuf.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 120f87956f1..d5d4cada6e9 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mbuf.h,v 1.110 2008/11/24 15:04:37 claudio Exp $ */ +/* $OpenBSD: mbuf.h,v 1.111 2008/11/24 15:06:55 claudio Exp $ */ /* $NetBSD: mbuf.h,v 1.19 1996/02/09 18:25:14 christos Exp $ */ /* @@ -284,18 +284,6 @@ struct mbuf { #define MCLGETI(m, how, ifp, l) m_clget((m), (how), (ifp), (l)) /* - * Reset the data pointer on an mbuf. - */ -#define MRESETDATA(m) do { \ - if ((m)->m_flags & M_EXT) \ - (m)->m_data = (m)->m_ext.ext_buf; \ - else if ((m)->m_flags & M_PKTHDR) \ - (m)->m_data = (m)->m_pktdat; \ - else \ - (m)->m_data = (m)->m_dat; \ -} while (/* CONSTCOND */ 0) - -/* * MFREE(struct mbuf *m, struct mbuf *n) * Free a single mbuf and associated external storage. * Place the successor, if any, in n. |