summaryrefslogtreecommitdiffstats
path: root/sys/rpc/rpcsec_gss/rpcsec_gss_prot.c
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-12-05 08:04:20 +0000
committerglebius <glebius@FreeBSD.org>2012-12-05 08:04:20 +0000
commit8e20fa5ae93243e19700ca06c01524b90fe3b784 (patch)
treebf083a0829f8044362fc83354c8e8b60d1f7932a /sys/rpc/rpcsec_gss/rpcsec_gss_prot.c
parentd0604243f84872a5dd39fc735ebcdb4fbe1b6bb5 (diff)
downloadFreeBSD-src-8e20fa5ae93243e19700ca06c01524b90fe3b784.zip
FreeBSD-src-8e20fa5ae93243e19700ca06c01524b90fe3b784.tar.gz
Mechanically substitute flags from historic mbuf allocator with
malloc(9) flags within sys. Exceptions: - sys/contrib not touched - sys/mbuf.h edited manually
Diffstat (limited to 'sys/rpc/rpcsec_gss/rpcsec_gss_prot.c')
-rw-r--r--sys/rpc/rpcsec_gss/rpcsec_gss_prot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/rpc/rpcsec_gss/rpcsec_gss_prot.c b/sys/rpc/rpcsec_gss/rpcsec_gss_prot.c
index 91112a1..a50c4fa 100644
--- a/sys/rpc/rpcsec_gss/rpcsec_gss_prot.c
+++ b/sys/rpc/rpcsec_gss/rpcsec_gss_prot.c
@@ -107,7 +107,7 @@ put_uint32(struct mbuf **mp, uint32_t v)
struct mbuf *m = *mp;
uint32_t n;
- M_PREPEND(m, sizeof(uint32_t), M_WAIT);
+ M_PREPEND(m, sizeof(uint32_t), M_WAITOK);
n = htonl(v);
bcopy(&n, mtod(m, uint32_t *), sizeof(uint32_t));
*mp = m;
@@ -241,7 +241,7 @@ xdr_rpc_gss_unwrap_data(struct mbuf **resultsp,
*/
len = get_uint32(&results);
message = results;
- results = m_split(results, len, M_WAIT);
+ results = m_split(results, len, M_WAITOK);
if (!results) {
m_freem(message);
return (FALSE);
OpenPOWER on IntegriCloud