fs/nfs/rpc_clnt.c: Fix a typo introduced with bd3cc792ff.

This commit is contained in:
Gregory Nutt 2019-10-27 15:39:08 -06:00
parent 53d5174f82
commit c11c18858f
1 changed files with 5 additions and 3 deletions

View File

@ -507,7 +507,7 @@ int rpcclnt_connect(struct rpcclnt *rpc)
error = rpcclnt_request(rpc, RPCMNT_MOUNT, RPCPROG_MNT, RPCMNT_VER3,
(FAR void *)&request.mountd,
sizeof(struct call_args_mount),
(FAR void *)&response.mdata
(FAR void *)&response.mdata,
sizeof(struct rpc_reply_mount));
if (error != 0)
{
@ -545,8 +545,10 @@ int rpcclnt_connect(struct rpcclnt *rpc)
request.sdata.pmap.port = 0;
error = rpcclnt_request(rpc, PMAPPROC_GETPORT, PMAPPROG, PMAPVERS,
(FAR void *)&request.sdata, sizeof(struct call_args_pmap),
(FAR void *)&response.rdata, sizeof(struct rpc_reply_pmap));
(FAR void *)&request.sdata,
sizeof(struct call_args_pmap),
(FAR void *)&response.rdata,
sizeof(struct rpc_reply_pmap));
if (error != 0)
{
ferr("ERROR: rpcclnt_request failed: %d\n", error);