mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
fs/nfs/rpc_clnt.c: Fix a typo introduced with bd3cc792ff.
This commit is contained in:
+5
-3
@@ -507,7 +507,7 @@ int rpcclnt_connect(struct rpcclnt *rpc)
|
|||||||
error = rpcclnt_request(rpc, RPCMNT_MOUNT, RPCPROG_MNT, RPCMNT_VER3,
|
error = rpcclnt_request(rpc, RPCMNT_MOUNT, RPCPROG_MNT, RPCMNT_VER3,
|
||||||
(FAR void *)&request.mountd,
|
(FAR void *)&request.mountd,
|
||||||
sizeof(struct call_args_mount),
|
sizeof(struct call_args_mount),
|
||||||
(FAR void *)&response.mdata
|
(FAR void *)&response.mdata,
|
||||||
sizeof(struct rpc_reply_mount));
|
sizeof(struct rpc_reply_mount));
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
{
|
{
|
||||||
@@ -545,8 +545,10 @@ int rpcclnt_connect(struct rpcclnt *rpc)
|
|||||||
request.sdata.pmap.port = 0;
|
request.sdata.pmap.port = 0;
|
||||||
|
|
||||||
error = rpcclnt_request(rpc, PMAPPROC_GETPORT, PMAPPROG, PMAPVERS,
|
error = rpcclnt_request(rpc, PMAPPROC_GETPORT, PMAPPROG, PMAPVERS,
|
||||||
(FAR void *)&request.sdata, sizeof(struct call_args_pmap),
|
(FAR void *)&request.sdata,
|
||||||
(FAR void *)&response.rdata, sizeof(struct rpc_reply_pmap));
|
sizeof(struct call_args_pmap),
|
||||||
|
(FAR void *)&response.rdata,
|
||||||
|
sizeof(struct rpc_reply_pmap));
|
||||||
if (error != 0)
|
if (error != 0)
|
||||||
{
|
{
|
||||||
ferr("ERROR: rpcclnt_request failed: %d\n", error);
|
ferr("ERROR: rpcclnt_request failed: %d\n", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user