summaryrefslogtreecommitdiffstats
path: root/fs/efi.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2019-02-04 12:32:23 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-06 08:31:13 +0100
commitd112c7aad310ff5261fb65d4441c0567fc54d696 (patch)
treeb95876a000b3e7a5976a6b8cfe7b40ed467cff8b /fs/efi.c
parentcd4f8f89d3f71ba3a0a29fa212f5cc2cb8793c7f (diff)
downloadbarebox-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/efi.c b/fs/efi.c
index cd4fee79a1..81c1ffe078 100644
--- a/fs/efi.c
+++ b/fs/efi.c
@@ -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;