diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-04 12:32:23 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-02-06 08:31:13 +0100 |
commit | d112c7aad310ff5261fb65d4441c0567fc54d696 (patch) | |
tree | b95876a000b3e7a5976a6b8cfe7b40ed467cff8b /fs/fat | |
parent | cd4f8f89d3f71ba3a0a29fa212f5cc2cb8793c7f (diff) | |
download | barebox-d112c7aad310ff5261fb65d4441c0567fc54d696.tar.gz barebox-d112c7aad310ff5261fb65d4441c0567fc54d696.tar.xz |
fs: let truncate take a loff_t argument
loff_t is the correct type for file sizes. Use it to allow to truncate
to sizes bigger than 32bit.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/fat')
-rw-r--r-- | fs/fat/fat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat.c b/fs/fat/fat.c index 1367577723..394c75ffc4 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -177,7 +177,7 @@ static int fat_write(struct device_d *_dev, FILE *f, const void *buf, size_t ins return outsize; } -static int fat_truncate(struct device_d *dev, FILE *f, ulong size) +static int fat_truncate(struct device_d *dev, FILE *f, loff_t size) { FIL *f_file = f->priv; unsigned long lastofs; |