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 /include/fs.h | |
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 'include/fs.h')
-rw-r--r-- | include/fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/fs.h b/include/fs.h index 68b6380bc6..aa23bcc228 100644 --- a/include/fs.h +++ b/include/fs.h @@ -46,7 +46,7 @@ struct fs_driver_d { int (*unlink)(struct device_d *dev, const char *pathname); /* Truncate a file to given size */ - int (*truncate)(struct device_d *dev, FILE *f, ulong size); + int (*truncate)(struct device_d *dev, FILE *f, loff_t size); int (*open)(struct device_d *dev, FILE *f, const char *pathname); int (*close)(struct device_d *dev, FILE *f); |