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/efi.c | |
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/efi.c')
-rw-r--r-- | fs/efi.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -305,7 +305,7 @@ static int efifs_lseek(struct device_d *dev, FILE *f, loff_t pos) return 0; } -static int efifs_truncate(struct device_d *dev, FILE *f, unsigned long size) +static int efifs_truncate(struct device_d *dev, FILE *f, loff_t size) { struct efifs_file *ufile = f->priv; efi_status_t efiret; |