diff options
author | ngie <ngie@FreeBSD.org> | 2016-12-03 18:14:29 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-12-03 18:14:29 +0000 |
commit | 37d510727f9adb6dd2a1fb26a5dcf1a3a8218d82 (patch) | |
tree | dbb28c6906228b084067f9ff672b23224c8dfa73 /lib/libc/rpc/rpc_callmsg.c | |
parent | 0a66bc300d05a0e454ccadea52f28676d998afac (diff) | |
download | FreeBSD-src-37d510727f9adb6dd2a1fb26a5dcf1a3a8218d82.zip FreeBSD-src-37d510727f9adb6dd2a1fb26a5dcf1a3a8218d82.tar.gz |
MFC r301754,r301769:
r301754 (by pfg):
libc/rpc: Make use of some xdr_* macros.
xdr_rpcprog and xdr_rpcvers were broken in older versions of FreeBSD
but were fixed in r296394. Give them some use hoping they help make
the code somewhat more readable.
r301769 (by pfg):
libc/rpc: Make use of some xdr_* macros. (part 2)
xdr_rpcproc, xdr_rpcprog and xdr_rpcvers were broken in older
versions of FreeBSD but fixed in r296394. Give them some use
hoping they help make the code somewhat more readable.
Diffstat (limited to 'lib/libc/rpc/rpc_callmsg.c')
-rw-r--r-- | lib/libc/rpc/rpc_callmsg.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/rpc/rpc_callmsg.c b/lib/libc/rpc/rpc_callmsg.c index 0e29e09..4063e8b 100644 --- a/lib/libc/rpc/rpc_callmsg.c +++ b/lib/libc/rpc/rpc_callmsg.c @@ -193,11 +193,11 @@ xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg) xdr_u_int32_t(xdrs, &(cmsg->rm_xid)) && xdr_enum(xdrs, (enum_t *) prm_direction) && (cmsg->rm_direction == CALL) && - xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_rpcvers)) && + xdr_rpcvers(xdrs, &(cmsg->rm_call.cb_rpcvers)) && (cmsg->rm_call.cb_rpcvers == RPC_MSG_VERSION) && - xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_prog)) && - xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_vers)) && - xdr_u_int32_t(xdrs, &(cmsg->rm_call.cb_proc)) && + xdr_rpcprog(xdrs, &(cmsg->rm_call.cb_prog)) && + xdr_rpcvers(xdrs, &(cmsg->rm_call.cb_vers)) && + xdr_rpcproc(xdrs, &(cmsg->rm_call.cb_proc)) && xdr_opaque_auth(xdrs, &(cmsg->rm_call.cb_cred)) ) return (xdr_opaque_auth(xdrs, &(cmsg->rm_call.cb_verf))); return (FALSE); |