svn commit: r309506 - stable/10/usr.sbin/rpcbind
Ngie Cooper
ngie at FreeBSD.org
Sat Dec 3 19:21:36 UTC 2016
Author: ngie
Date: Sat Dec 3 19:21:35 2016
New Revision: 309506
URL: https://svnweb.freebsd.org/changeset/base/309506
Log:
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.
Modified:
stable/10/usr.sbin/rpcbind/rpcb_svc_com.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/usr.sbin/rpcbind/rpcb_svc_com.c
==============================================================================
--- stable/10/usr.sbin/rpcbind/rpcb_svc_com.c Sat Dec 3 19:15:26 2016 (r309505)
+++ stable/10/usr.sbin/rpcbind/rpcb_svc_com.c Sat Dec 3 19:21:35 2016 (r309506)
@@ -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);
More information about the svn-src-all
mailing list