diff options
author | Suriyan Ramasami <suriyan.r@gmail.com> | 2014-11-17 14:39:35 -0800 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-23 06:49:04 -0500 |
commit | 1ad0b98a067a133c0e8a182649a76a4afd739594 (patch) | |
tree | 26f5ce4468fb8886efee020e31257f62c5feaca4 /fs/fat/file.c | |
parent | 64553717bb3552f736090298ea952cb5ef07ef75 (diff) | |
download | u-boot-imx-1ad0b98a067a133c0e8a182649a76a4afd739594.zip u-boot-imx-1ad0b98a067a133c0e8a182649a76a4afd739594.tar.gz u-boot-imx-1ad0b98a067a133c0e8a182649a76a4afd739594.tar.bz2 |
fat: Prepare API change for files greater than 2GB
Change the internal FAT functions to use loff_t for offsets.
Signed-off-by: Suriyan Ramasami <suriyan.r@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>
[trini: Fix fs/fat/fat.c for min3 updates]
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'fs/fat/file.c')
-rw-r--r-- | fs/fat/file.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/fat/file.c b/fs/fat/file.c index d910c46..8970611 100644 --- a/fs/fat/file.c +++ b/fs/fat/file.c @@ -162,8 +162,7 @@ file_ls(const char *dir) return filesystems[current_filesystem].ls(arg); } -long -file_read(const char *filename, void *buffer, unsigned long maxsize) +int file_read(const char *filename, void *buffer, int maxsize) { char fullpath[1024]; const char *arg; |