summaryrefslogtreecommitdiff
path: root/nuttx/fs/nfs/nfs_util.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-11 18:55:58 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-06-11 18:55:58 +0000
commit0b9b04441d3bb7ad5386f35b4af31e5c551ab5b1 (patch)
tree774c1cf28976ce2f44709d899f17de658faf366d /nuttx/fs/nfs/nfs_util.c
parent28631daed8e885f68ff275c63a86af2555fb9fb8 (diff)
downloadpx4-nuttx-0b9b04441d3bb7ad5386f35b4af31e5c551ab5b1.tar.gz
px4-nuttx-0b9b04441d3bb7ad5386f35b4af31e5c551ab5b1.tar.bz2
px4-nuttx-0b9b04441d3bb7ad5386f35b4af31e5c551ab5b1.zip
NFS update
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4828 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/nfs/nfs_util.c')
-rw-r--r--nuttx/fs/nfs/nfs_util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/nuttx/fs/nfs/nfs_util.c b/nuttx/fs/nfs/nfs_util.c
index ccf40b4fa..0d61ed3d9 100644
--- a/nuttx/fs/nfs/nfs_util.c
+++ b/nuttx/fs/nfs/nfs_util.c
@@ -128,6 +128,7 @@ static inline int nfs_pathsegment(FAR const char **path, FAR char *buffer,
/* Save next character in the accumulated name */
*dest++ = ch;
+ nbytes++;
}
}
}
@@ -475,7 +476,7 @@ int nfs_findnode(struct nfsmount *nmp, FAR const char *relpath,
/* Extract the next path segment name. */
error = nfs_pathsegment(&path, buffer, &terminator);
- if (error != 0)
+ if (error != OK)
{
/* The filename segment contains is too long. */
@@ -487,7 +488,7 @@ int nfs_findnode(struct nfsmount *nmp, FAR const char *relpath,
/* Look-up this path segment */
error = nfs_lookup(nmp, buffer, fhandle, obj_attributes, dir_attributes);
- if (error != 0)
+ if (error != OK)
{
fdbg("nfs_lookup of \"%s\" failed at \"%s\": %d\n",
relpath, buffer, error);
@@ -569,7 +570,7 @@ int nfs_finddir(struct nfsmount *nmp, FAR const char *relpath,
/* Extract the next path segment name. */
error = nfs_pathsegment(&path, filename, &terminator);
- if (error != 0)
+ if (error != OK)
{
/* The filename segment contains is too long. */
@@ -595,7 +596,7 @@ int nfs_finddir(struct nfsmount *nmp, FAR const char *relpath,
/* Look-up the next path segment */
error = nfs_lookup(nmp, filename, fhandle, attributes, NULL);
- if (error != 0)
+ if (error != OK)
{
fdbg("nfs_lookup of \"%s\" failed at \"%s\": %d\n",
relpath, filename, error);