diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2013-03-12 12:17:19 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2013-03-12 12:17:19 +0000 |
commit | bd54830bcb16df5cab42a0353dacaf5b20a45fba (patch) | |
tree | 9e6dc660f3f0a50fdd9ea3d6c263c242a9ddde3d /sys/rpc/svc_vc.c | |
parent | 3b4a84e75709c242d486ad3349fbeb24bf3dce9f (diff) | |
download | src-bd54830bcb16df5cab42a0353dacaf5b20a45fba.tar.gz src-bd54830bcb16df5cab42a0353dacaf5b20a45fba.zip |
Use m_get(), m_gethdr() and m_getcl() instead of historic macros.
Sponsored by: Nginx, Inc.
Notes
Notes:
svn path=/head/; revision=248195
Diffstat (limited to 'sys/rpc/svc_vc.c')
-rw-r--r-- | sys/rpc/svc_vc.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/rpc/svc_vc.c b/sys/rpc/svc_vc.c index 667d84c841cc..80824ef95610 100644 --- a/sys/rpc/svc_vc.c +++ b/sys/rpc/svc_vc.c @@ -796,8 +796,7 @@ svc_vc_reply(SVCXPRT *xprt, struct rpc_msg *msg, /* * Leave space for record mark. */ - MGETHDR(mrep, M_WAITOK, MT_DATA); - mrep->m_len = 0; + mrep = m_gethdr(M_WAITOK, MT_DATA); mrep->m_data += sizeof(uint32_t); xdrmbuf_create(&xdrs, mrep, XDR_ENCODE); @@ -850,8 +849,7 @@ svc_vc_backchannel_reply(SVCXPRT *xprt, struct rpc_msg *msg, /* * Leave space for record mark. */ - MGETHDR(mrep, M_WAITOK, MT_DATA); - mrep->m_len = 0; + mrep = m_gethdr(M_WAITOK, MT_DATA); mrep->m_data += sizeof(uint32_t); xdrmbuf_create(&xdrs, mrep, XDR_ENCODE); |