summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-28 21:05:39 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-04-28 21:05:39 +0000
commit7cb2546571c7ac881f4bd0c2c066c974e2174741 (patch)
tree7473c890c43e30659210be6a45b4a6b47749e7b5 /apps
parentf5deadfbb2ea797607ce7646c2bca1fdfe74c3c2 (diff)
downloadnuttx-7cb2546571c7ac881f4bd0c2c066c974e2174741.tar.gz
nuttx-7cb2546571c7ac881f4bd0c2c066c974e2174741.tar.bz2
nuttx-7cb2546571c7ac881f4bd0c2c066c974e2174741.zip
More NXFFS logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3537 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'apps')
-rw-r--r--apps/namedapp/binfs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/namedapp/binfs.c b/apps/namedapp/binfs.c
index a2f14dd75..106c1444c 100644
--- a/apps/namedapp/binfs.c
+++ b/apps/namedapp/binfs.c
@@ -4,8 +4,6 @@
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
- * References: Linux/Documentation/filesystems/romfs.txt
- *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -388,11 +386,10 @@ static int binfs_readdir(struct inode *mountpt, struct fs_dirent_s *dir)
index++;
/* Set up the next directory entry offset. NOTE that we could use the
- * standard fr_curroffset instead of our own private fr_curroffset.
+ * standard f_pos instead of our own private fb_index.
*/
dir->u.binfs.fb_index = index;
- dir->u.romfs.fr_curroffset = index;
ret = OK;
}
@@ -423,7 +420,6 @@ static int binfs_rewinddir(struct inode *mountpt, struct fs_dirent_s *dir)
binfs_semtake(bm);
dir->u.binfs.fb_index = 0;
- dir->u.romfs.fr_curroffset = 0;
binfs_semgive(bm);
return OK;