summaryrefslogtreecommitdiff
path: root/sys/net/rtsock.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-30 15:30:18 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-30 15:30:18 +0000
commitab04cb32d34e855d961263d79cb06308c3dfa79c (patch)
tree8fcd90d0bfdebab4a5fa0dc6a909e389884db834 /sys/net/rtsock.c
parent0b812a21998977cef74d01a9fb18550fb3cd4b85 (diff)
Get rid of the undocumented & temporary* m_copy() macro added for
compatibility with 4.3BSD in September 1989. *Pick your own definition for "temporary". ok bluhm@, claudio@, dlg@
Diffstat (limited to 'sys/net/rtsock.c')
-rw-r--r--sys/net/rtsock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index 48e5ae4d7f6..77a1b956866 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.160 2015/06/16 11:09:40 mpi Exp $ */
+/* $OpenBSD: rtsock.c,v 1.161 2015/06/30 15:30:17 mpi Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -402,7 +402,7 @@ route_input(struct mbuf *m0, ...)
if (last) {
struct mbuf *n;
- if ((n = m_copy(m, 0, (int)M_COPYALL)) != NULL) {
+ if ((n = m_copym(m, 0, M_COPYALL, M_NOWAIT)) != NULL) {
if (sbspace(&last->so_rcv) < (2 * MSIZE) ||
sbappendaddr(&last->so_rcv, sosrc,
n, (struct mbuf *)NULL) == 0) {