From 82c443276574e9a4b11ebdaecfcb31fb0f2c3b4a Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 12 Mar 2013 12:17:19 +0000 Subject: Use m_get(), m_gethdr() and m_getcl() instead of historic macros. Sponsored by: Nginx, Inc. --- sys/rpc/svc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/rpc/svc.c') diff --git a/sys/rpc/svc.c b/sys/rpc/svc.c index f038e78..bbc6f6d 100644 --- a/sys/rpc/svc.c +++ b/sys/rpc/svc.c @@ -563,9 +563,7 @@ svc_sendreply(struct svc_req *rqstp, xdrproc_t xdr_results, void * xdr_location) rply.acpted_rply.ar_results.where = NULL; rply.acpted_rply.ar_results.proc = (xdrproc_t) xdr_void; - MGET(m, M_WAITOK, MT_DATA); - MCLGET(m, M_WAITOK); - m->m_len = 0; + m = m_getcl(M_WAITOK, MT_DATA, 0); xdrmbuf_create(&xdrs, m, XDR_ENCODE); ok = xdr_results(&xdrs, xdr_location); XDR_DESTROY(&xdrs); -- cgit v1.1