summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/rpc_clnt.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-12 17:36:48 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-12 17:36:48 +0000
commit44ec3b800f05782d2f9acea88fd3b1aeb2ef8132 (patch)
tree99f34f910bcd872ec8f6787457092cb28d777e3b /nuttx/fs/nfs/rpc_clnt.c
parent7f63dd840feea2cce7e55ad8bc4e1e98d23ede87 (diff)
downloadpx4-nuttx-44ec3b800f05782d2f9acea88fd3b1aeb2ef8132.tar.gz
px4-nuttx-44ec3b800f05782d2f9acea88fd3b1aeb2ef8132.tar.bz2
px4-nuttx-44ec3b800f05782d2f9acea88fd3b1aeb2ef8132.zip
NFS code shrinking
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4833 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/rpc_clnt.c')
-rw-r--r--nuttx/fs/nfs/rpc_clnt.c12
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
{