diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-27 03:49:56 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 2001-06-27 03:49:56 +0000 |
commit | 5a60def576e7a9fc33be3c2ce84e9c5a4ea87acf (patch) | |
tree | eec94d4164616ff7c03e306b4723bda222307b2f /sys/kern | |
parent | cc7d393f894b86439bc3d6e082a11123747a46bd (diff) |
Get rid of M_COPY_* macros; either use M_MOVE_* or M_DUP_*, depending
on how macros should be treated. Code by fgsch@, ok by me and itojun@
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index a48b1a4edfa..8cb06fdf542 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.37 2001/06/26 06:27:40 aaron Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.38 2001/06/27 03:49:52 angelos Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -290,7 +290,7 @@ m_prepend(m, len, how) return (NULL); } if (m->m_flags & M_PKTHDR) - M_COPY_PKTHDR(mn, m); + M_MOVE_PKTHDR(mn, m); mn->m_next = m; m = mn; if (len < MHLEN) @@ -592,7 +592,7 @@ m_pullup(n, len) goto bad; m->m_len = 0; if (n->m_flags & M_PKTHDR) - M_COPY_PKTHDR(m, n); + M_MOVE_PKTHDR(m, n); } space = &m->m_dat[MLEN] - (m->m_data + m->m_len); do { @@ -661,7 +661,7 @@ m_pullup2(n, len) /* Too many adverse side effects. */ /* M_COPY_PKTHDR(m, n); */ m->m_flags = (n->m_flags & M_COPYFLAGS) | M_EXT; - M_COPY_HDR(m, n); + M_MOVE_HDR(m, n); /* n->m_data is cool. */ } } |