diff options
author | ngie <ngie@FreeBSD.org> | 2016-12-03 19:21:35 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-12-03 19:21:35 +0000 |
commit | 83855f875bfc8cf87e6c1e5a25d5e974c7166049 (patch) | |
tree | aab0e92932c17d47da18a3c10f1ee08906bf1264 | |
parent | 063da7380c330faf46a5ec19e66311aaf6564417 (diff) | |
download | FreeBSD-src-83855f875bfc8cf87e6c1e5a25d5e974c7166049.zip FreeBSD-src-83855f875bfc8cf87e6c1e5a25d5e974c7166049.tar.gz |
MFC r301770:
r301770 (by pfg):
rpcbind(8): Make use of some xdr_* macros.
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.
-rw-r--r-- | usr.sbin/rpcbind/rpcb_svc_com.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/rpcbind/rpcb_svc_com.c b/usr.sbin/rpcbind/rpcb_svc_com.c index 72fea28..7717335 100644 --- a/usr.sbin/rpcbind/rpcb_svc_com.c +++ b/usr.sbin/rpcbind/rpcb_svc_com.c @@ -430,9 +430,9 @@ static bool_t xdr_rmtcall_args(XDR *xdrs, struct r_rmtcall_args *cap) { /* does not get the address or the arguments */ - if (xdr_u_int32_t(xdrs, &(cap->rmt_prog)) && - xdr_u_int32_t(xdrs, &(cap->rmt_vers)) && - xdr_u_int32_t(xdrs, &(cap->rmt_proc))) { + if (xdr_rpcprog(xdrs, &(cap->rmt_prog)) && + xdr_rpcvers(xdrs, &(cap->rmt_vers)) && + xdr_rpcproc(xdrs, &(cap->rmt_proc))) { return (xdr_encap_parms(xdrs, &(cap->rmt_args))); } return (FALSE); |