diff options
author | Michael Sparmann <theseven@rockbox.org> | 2011-02-27 23:22:09 +0000 |
---|---|---|
committer | Michael Sparmann <theseven@rockbox.org> | 2011-02-27 23:22:09 +0000 |
commit | a5034bd244c143f41f49df79d997dd0e0a88ab9b (patch) | |
tree | 56f8cc82bdb4799e354b703eab0a10b4aee7bdba | |
parent | 30fb680a4dc7b8f1fed9002a47dc2154c7f72d0a (diff) |
Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29449 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/common/file.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/firmware/common/file.c b/firmware/common/file.c index 272cf8a80b..8f6bfa051b 100644 --- a/firmware/common/file.c +++ b/firmware/common/file.c @@ -496,10 +496,13 @@ static int flush_cache(int fd) static int readwrite(int fd, void* buf, long count, bool write) { long sectors; - long i; long nread=0; struct filedesc* file; - int rc, rc2; + int rc; +#ifdef STORAGE_NEEDS_ALIGN + long i; + int rc2; +#endif if (fd < 0 || fd > MAX_OPEN_FILES-1) { errno = EINVAL; |