summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/rpc_callmsg.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-12-05 15:53:29 -0200
committerRenato Botelho <renato@netgate.com>2016-12-05 15:53:29 -0200
commit812767d2bb4e201b4f826fd31924d2cafb8fe0ae (patch)
tree3e3dbc65eb273c201d08a9eaf227f857e2a62358 /lib/libc/rpc/rpc_callmsg.c
parentc1d136c87f2377fd07592928003e67490eb479a6 (diff)
parentb0e9d555db88639874b99e5151bf5981a8223322 (diff)
downloadFreeBSD-src-812767d2bb4e201b4f826fd31924d2cafb8fe0ae.zip
FreeBSD-src-812767d2bb4e201b4f826fd31924d2cafb8fe0ae.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'lib/libc/rpc/rpc_callmsg.c')
-rw-r--r--lib/libc/rpc/rpc_callmsg.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/libc/rpc/rpc_callmsg.c b/lib/libc/rpc/rpc_callmsg.c
index 5b7ea49..4063e8b 100644
--- a/lib/libc/rpc/rpc_callmsg.c
+++ b/lib/libc/rpc/rpc_callmsg.c
@@ -54,9 +54,7 @@ __FBSDID("$FreeBSD$");
* XDR a call message
*/
bool_t
-xdr_callmsg(xdrs, cmsg)
- XDR *xdrs;
- struct rpc_msg *cmsg;
+xdr_callmsg(XDR *xdrs, struct rpc_msg *cmsg)
{
enum msg_type *prm_direction;
int32_t *buf;
@@ -195,11 +193,11 @@ xdr_callmsg(xdrs, 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);
OpenPOWER on IntegriCloud