diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-06-12 17:36:48 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-06-12 17:36:48 +0000 |
commit | 52ae543656e70cce67d89452270e5a6c08554b89 (patch) | |
tree | 99f34f910bcd872ec8f6787457092cb28d777e3b /nuttx/fs/nfs/rpc_clnt.c | |
parent | e7b80154df9a014306c7d785d731f949278a3c94 (diff) | |
download | px4-firmware-52ae543656e70cce67d89452270e5a6c08554b89.tar.gz px4-firmware-52ae543656e70cce67d89452270e5a6c08554b89.tar.bz2 px4-firmware-52ae543656e70cce67d89452270e5a6c08554b89.zip |
NFS code shrinking
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4833 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/fs/nfs/rpc_clnt.c')
-rw-r--r-- | nuttx/fs/nfs/rpc_clnt.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/nuttx/fs/nfs/rpc_clnt.c b/nuttx/fs/nfs/rpc_clnt.c index aafd63feb..bfc2201e1 100644 --- a/nuttx/fs/nfs/rpc_clnt.c +++ b/nuttx/fs/nfs/rpc_clnt.c @@ -100,7 +100,6 @@ /**************************************************************************** * Pre-processor Definitions ****************************************************************************/ - /* Estimate rto for an nfs rpc sent via. an unreliable datagram. Use the mean * and mean deviation of rtt for the appropriate type of rpc for the frequent * rpcs and a default for the others. The justification for doing "other" @@ -711,12 +710,9 @@ static int rpcclnt_reply(struct rpctask *myrep, int procid, int prog, if (rep->r_flags & TASK_TIMING) { - /* Since the timer resolution of - * NFS_HZ is so course, it can often - * result in r_rtt == 0. Since r_rtt - * == N means that the actual rtt is - * between N+dt and N+2-dt ticks, add - * 1. + /* Since the timer resolution of is so coarse, it can often + * result in r_rtt == 0. Since r_rtt == N means that the actual + * rtt is between N+dt and N+2-dt ticks, add 1. */ t1 = rep->r_rtt + 1; @@ -1824,7 +1820,7 @@ int rpcclnt_request(FAR struct rpcclnt *rpc, int procnum, int prog, * update the call messsage size. */ - callmsg = request; + callmsg = (FAR void *)request; } else { |