diff options
Diffstat (limited to 'firmware/common')
-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; |