mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 17:23:34 +08:00
Add GPIO support to STMPE11 driver; NFS update
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4701 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -145,7 +145,7 @@ int nfs_connect(struct nfsmount *nmp)
|
||||
|
||||
rpc->rc_authtype = RPCAUTH_NULL; /* for now */
|
||||
//rpc->rc_servername = nmp->nm_mountp->mnt_stat.f_mntfromname;
|
||||
rpc->rc_name = nmp->nm_nam;
|
||||
rpc->rc_name = &nmp->nm_nam;
|
||||
|
||||
rpc->rc_sotype = nmp->nm_sotype;
|
||||
rpc->rc_soproto = nmp->nm_soproto;
|
||||
@@ -184,30 +184,21 @@ int nfs_request(struct nfsmount *nmp, int procnum, void *datain, void *dataout)
|
||||
{
|
||||
int error;
|
||||
struct rpcclnt *clnt= nmp->nm_rpcclnt;
|
||||
struct rpc_reply *reply;
|
||||
struct rpc_reply reply;
|
||||
int trylater_delay;
|
||||
|
||||
/* Create an instance of the reply state structure */
|
||||
|
||||
reply = (struct rpc_reply *)kzalloc(sizeof(struct rpc_reply));
|
||||
if (!reply)
|
||||
{
|
||||
fdbg("Failed to allocate reply structure\n");
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
tryagain:
|
||||
|
||||
if ((error = rpcclnt_request(clnt, procnum, reply, datain)) != 0)
|
||||
if ((error = rpcclnt_request(clnt, procnum, &reply, datain)) != 0)
|
||||
{
|
||||
goto out;
|
||||
}
|
||||
|
||||
dataout = &reply->stat.where;
|
||||
bcopy (dataout, &reply.stat.where, sizeof(reply.stat.where));
|
||||
|
||||
if (reply->rpc_verfi.authtype != 0)
|
||||
if (reply.rpc_verfi.authtype != 0)
|
||||
{
|
||||
error = fxdr_unsigned(int, reply->rpc_verfi.authtype);
|
||||
error = fxdr_unsigned(int, reply.rpc_verfi.authtype);
|
||||
|
||||
if ((nmp->nm_flag & NFSMNT_NFSV3) && error == NFSERR_TRYLATER)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user