summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_socket.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-10 00:13:59 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-10 00:13:59 +0000
commite56f40210903c13eb07168de2acdf61c8babd2ae (patch)
tree94685ece210f7fd49cb823ae1762db64c57a163d /nuttx/fs/nfs/nfs_socket.c
parent59f64eb3c5ade626a3366355ae49344765d1a4c1 (diff)
downloadpx4-nuttx-e56f40210903c13eb07168de2acdf61c8babd2ae.tar.gz
px4-nuttx-e56f40210903c13eb07168de2acdf61c8babd2ae.tar.bz2
px4-nuttx-e56f40210903c13eb07168de2acdf61c8babd2ae.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4822 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_socket.c')
-rw-r--r--nuttx/fs/nfs/nfs_socket.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/nuttx/fs/nfs/nfs_socket.c b/nuttx/fs/nfs/nfs_socket.c
index 141196b01..133121b29 100644
--- a/nuttx/fs/nfs/nfs_socket.c
+++ b/nuttx/fs/nfs/nfs_socket.c
@@ -125,7 +125,7 @@ int nfs_connect(struct nfsmount *nmp)
if (!rpc)
{
fdbg("ERROR: Failed to allocate rpc structure\n");
- return -ENOMEM;
+ return ENOMEM;
}
rpc->rc_prog = &nfs3_program;
@@ -180,8 +180,9 @@ void nfs_safedisconnect(struct nfsmount *nmp)
}
#endif
-int nfs_request(struct nfsmount *nmp, int procnum, FAR const void *datain,
- FAR void *dataout, size_t len)
+int nfs_request(struct nfsmount *nmp, int procnum,
+ FAR const void *request, size_t reqlen,
+ FAR void *response, size_t resplen)
{
struct rpcclnt *clnt= nmp->nm_rpcclnt;
struct rpc_reply_header replyh;
@@ -193,15 +194,15 @@ tryagain:
memset(&replyh, 0, sizeof(struct rpc_reply_header));
error = rpcclnt_request(clnt, procnum, nmp->nm_rpcclnt->rc_prog->prog_id,
- nmp->nm_rpcclnt->rc_prog->prog_version, dataout,
- datain, len);
+ nmp->nm_rpcclnt->rc_prog->prog_version, request, reqlen,
+ response, resplen);
if (error != 0)
{
fdbg("ERROR: rpcclnt_request failed: %d\n", error);
goto out;
}
- memcpy(&replyh, dataout, sizeof(struct rpc_reply_header));
+ memcpy(&replyh, response, sizeof(struct rpc_reply_header));
if (replyh.rpc_verfi.authtype != 0)
{