aboutsummaryrefslogtreecommitdiff
path: root/sys/rpc/clnt_vc.c
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2012-12-05 08:04:20 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2012-12-05 08:04:20 +0000
commiteb1b1807afd1266445720b768b1bdbcdf7655a0a (patch)
treebf083a0829f8044362fc83354c8e8b60d1f7932a /sys/rpc/clnt_vc.c
parent6dbda21756f4e6634972b1a9405c49fe0605de6d (diff)
downloadsrc-eb1b1807afd1266445720b768b1bdbcdf7655a0a.tar.gz
src-eb1b1807afd1266445720b768b1bdbcdf7655a0a.zip
Mechanically substitute flags from historic mbuf allocator with
malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
Notes
Notes: svn path=/head/; revision=243882
Diffstat (limited to 'sys/rpc/clnt_vc.c')
-rw-r--r--sys/rpc/clnt_vc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/rpc/clnt_vc.c b/sys/rpc/clnt_vc.c
index 26f23fa1c864..6655e6e7da95 100644
--- a/sys/rpc/clnt_vc.c
+++ b/sys/rpc/clnt_vc.c
@@ -386,7 +386,7 @@ call_again:
/*
* Leave space to pre-pend the record mark.
*/
- MGETHDR(mreq, M_WAIT, MT_DATA);
+ MGETHDR(mreq, M_WAITOK, MT_DATA);
mreq->m_data += sizeof(uint32_t);
KASSERT(ct->ct_mpos + sizeof(uint32_t) <= MHLEN,
("RPC header too big"));
@@ -414,7 +414,7 @@ call_again:
/*
* Prepend a record marker containing the packet length.
*/
- M_PREPEND(mreq, sizeof(uint32_t), M_WAIT);
+ M_PREPEND(mreq, sizeof(uint32_t), M_WAITOK);
*mtod(mreq, uint32_t *) =
htonl(0x80000000 | (mreq->m_pkthdr.len - sizeof(uint32_t)));