summaryrefslogtreecommitdiffstats
path: root/firmware
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-03-10 21:55:59 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-03-10 21:55:59 +0000
commit5f12c8fbc78c5187a04b77c406b2618887874f00 (patch)
treed24c0db5ad4d42a4226d20976a148e8762017d53 /firmware
parent8ef97f8db590f1b4a3692b236de8dc7a21926d5c (diff)
downloadrockbox-5f12c8fbc78c5187a04b77c406b2618887874f00.tar.gz
rockbox-5f12c8fbc78c5187a04b77c406b2618887874f00.zip
Killed compiling error on debug builds
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3425 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/file.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c
index 9b88461c63..dd953f44c5 100644
--- a/firmware/common/file.c
+++ b/firmware/common/file.c
@@ -337,19 +337,9 @@ static int flush_cache(int fd)
{
int rc;
struct filedesc* file = &openfiles[fd];
-#if 0
- int sector = file->fileoffset / SECTOR_SIZE;
-#endif
-
- DEBUGF("Flushing dirty sector cache %x\n", sector);
-
- /* seek back one sector to get file position right */
-#if 0
- rc = fat_seek(&(file->fatfile), sector);
- if ( rc < 0 )
- return rc * 10 - 1;
-#endif
+ DEBUGF("Flushing dirty sector cache\n");
+
rc = fat_readwrite(&(file->fatfile), 1,
file->cache, true );
if ( rc < 0 )