summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-06-09 22:25:00 +0000
committerpfg <pfg@FreeBSD.org>2016-06-09 22:25:00 +0000
commit1262eaf8adfe169ea1897e5e69ee4c32b3763ddb (patch)
tree8c899cdcc7525f42cf88c0b27931a98ddd315098
parent791d946716844beeb9d6d7f997f8d913dace1187 (diff)
downloadFreeBSD-src-1262eaf8adfe169ea1897e5e69ee4c32b3763ddb.zip
FreeBSD-src-1262eaf8adfe169ea1897e5e69ee4c32b3763ddb.tar.gz
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.c6
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 5c6b8dd..c86f75e 100644
--- a/usr.sbin/rpcbind/rpcb_svc_com.c
+++ b/usr.sbin/rpcbind/rpcb_svc_com.c
@@ -429,9 +429,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);
OpenPOWER on IntegriCloud