diff options
author | 2016-09-15 00:00:40 +0000 | |
---|---|---|
committer | 2016-09-15 00:00:40 +0000 | |
commit | e38fa123b46c86e2dfbe6543ce7624e0e1cd1fdf (patch) | |
tree | 7762f84e293348ac7ec55b22c82ffe26befeed52 /sys | |
parent | take fingerprint of correct key for AuthorizedPrincipalsCommand (diff) | |
download | wireguard-openbsd-e38fa123b46c86e2dfbe6543ce7624e0e1cd1fdf.tar.xz wireguard-openbsd-e38fa123b46c86e2dfbe6543ce7624e0e1cd1fdf.zip |
remove m_copym2 as its use has been replaced by m_dup_pkt
ok millert@ mpi@ henning@ claudio@ markus@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_mbuf.c | 12 | ||||
-rw-r--r-- | sys/sys/mbuf.h | 3 |
2 files changed, 2 insertions, 13 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c index 4eaad77104d..1353c3d9f75 100644 --- a/sys/kern/uipc_mbuf.c +++ b/sys/kern/uipc_mbuf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_mbuf.c,v 1.228 2016/09/13 19:56:55 markus Exp $ */ +/* $OpenBSD: uipc_mbuf.c,v 1.229 2016/09/15 00:00:40 dlg Exp $ */ /* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */ /* @@ -576,16 +576,6 @@ m_copym(struct mbuf *m, int off, int len, int wait) return m_copym0(m, off, len, wait, 0); /* shallow copy on M_EXT */ } -/* - * m_copym2() is like m_copym(), except it COPIES cluster mbufs, instead - * of merely bumping the reference count. - */ -struct mbuf * -m_copym2(struct mbuf *m, int off, int len, int wait) -{ - return m_copym0(m, off, len, wait, 1); /* deep copy */ -} - struct mbuf * m_copym0(struct mbuf *m0, int off, int len, int wait, int deep) { diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 5184713868c..0976f57287c 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mbuf.h,v 1.218 2016/09/13 19:56:55 markus Exp $ */ +/* $OpenBSD: mbuf.h,v 1.219 2016/09/15 00:00:40 dlg Exp $ */ /* $NetBSD: mbuf.h,v 1.19 1996/02/09 18:25:14 christos Exp $ */ /* @@ -423,7 +423,6 @@ extern int max_protohdr; /* largest protocol header */ extern int max_hdr; /* largest link+protocol header */ void mbinit(void); -struct mbuf *m_copym2(struct mbuf *, int, int, int); struct mbuf *m_copym(struct mbuf *, int, int, int); struct mbuf *m_free(struct mbuf *); struct mbuf *m_get(int, int); |