From 5f12c8fbc78c5187a04b77c406b2618887874f00 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Mon, 10 Mar 2003 21:55:59 +0000 Subject: Killed compiling error on debug builds git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3425 a1c6a512-1295-4272-9138-f99709370657 --- firmware/common/file.c | 14 ++------------ 1 file 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 ) -- cgit v1.2.3