diff options
author | glebius <glebius@FreeBSD.org> | 2013-03-12 12:17:19 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2013-03-12 12:17:19 +0000 |
commit | 82c443276574e9a4b11ebdaecfcb31fb0f2c3b4a (patch) | |
tree | 9e6dc660f3f0a50fdd9ea3d6c263c242a9ddde3d /sys/rpc/svc.c | |
parent | 89cbb92630b48fdd00ee0d5773899bcfa0726a5a (diff) | |
download | FreeBSD-src-82c443276574e9a4b11ebdaecfcb31fb0f2c3b4a.zip FreeBSD-src-82c443276574e9a4b11ebdaecfcb31fb0f2c3b4a.tar.gz |
Use m_get(), m_gethdr() and m_getcl() instead of historic macros.
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/rpc/svc.c')
-rw-r--r-- | sys/rpc/svc.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |