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 /firmware/common/file.c | |
parent | 30fb680a4dc7b8f1fed9002a47dc2154c7f72d0a (diff) | |
download | rockbox-a5034bd244c143f41f49df79d997dd0e0a88ab9b.tar.gz rockbox-a5034bd244c143f41f49df79d997dd0e0a88ab9b.zip |
Fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29449 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common/file.c')
-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) | |||
496 | static int readwrite(int fd, void* buf, long count, bool write) | 496 | static int readwrite(int fd, void* buf, long count, bool write) |
497 | { | 497 | { |
498 | long sectors; | 498 | long sectors; |
499 | long i; | ||
500 | long nread=0; | 499 | long nread=0; |
501 | struct filedesc* file; | 500 | struct filedesc* file; |
502 | int rc, rc2; | 501 | int rc; |
502 | #ifdef STORAGE_NEEDS_ALIGN | ||
503 | long i; | ||
504 | int rc2; | ||
505 | #endif | ||
503 | 506 | ||
504 | if (fd < 0 || fd > MAX_OPEN_FILES-1) { | 507 | if (fd < 0 || fd > MAX_OPEN_FILES-1) { |
505 | errno = EINVAL; | 508 | errno = EINVAL; |