From 7cb2546571c7ac881f4bd0c2c066c974e2174741 Mon Sep 17 00:00:00 2001 From: patacongo Date: Thu, 28 Apr 2011 21:05:39 +0000 Subject: More NXFFS logic git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3537 42af7a65-404d-4744-a932-0658087f49c3 --- apps/namedapp/binfs.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'apps') 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 * - * 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; -- cgit v1.2.3