summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_vfsops.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-10 01:16:46 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-10 01:16:46 +0000
commit16efc815bddec5f830a35316aeb4080f112dc554 (patch)
tree85d140be8017d4b97fcf1f6cc103d39aa115acb3 /nuttx/fs/nfs/nfs_vfsops.c
parente56f40210903c13eb07168de2acdf61c8babd2ae (diff)
downloadpx4-nuttx-16efc815bddec5f830a35316aeb4080f112dc554.tar.gz
px4-nuttx-16efc815bddec5f830a35316aeb4080f112dc554.tar.bz2
px4-nuttx-16efc815bddec5f830a35316aeb4080f112dc554.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4823 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_vfsops.c')
-rw-r--r--nuttx/fs/nfs/nfs_vfsops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuttx/fs/nfs/nfs_vfsops.c b/nuttx/fs/nfs/nfs_vfsops.c
index c3268efbf..ad4100539 100644
--- a/nuttx/fs/nfs/nfs_vfsops.c
+++ b/nuttx/fs/nfs/nfs_vfsops.c
@@ -936,7 +936,7 @@ int nfs_readdirrpc(struct nfsmount *nmp, struct nfsnode *np,
* now points to the cookie.
*/
- ptr += (length + 3) >> 2;
+ ptr += uint32_increment(length);
/* Save the cookie and increment the pointer to the next entry */
@@ -972,7 +972,7 @@ int nfs_readdirrpc(struct nfsmount *nmp, struct nfsnode *np,
/* Set the dirent file type */
- switch (obj_attributes.fa_type)
+ switch (fxdr_unsigned(uint32_t, obj_attributes.fa_type))
{
default:
case NFNON: /* Unknown type */