summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-05-27 11:57:34 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-05-28 10:36:09 +0200
commitc0d065fb0aa04dbc758c08db9cc9ce362f5cde29 (patch)
tree6298cea0ae65b872df1419d599807858bfdabd3a /scripts
parentcf26f8eb871e861201586157c23f2c32edb4f52c (diff)
downloadbarebox-c0d065fb0aa04dbc758c08db9cc9ce362f5cde29.tar.gz
barebox-c0d065fb0aa04dbc758c08db9cc9ce362f5cde29.tar.xz
scripts: bareboximd: remove usage of loff_t
loff_t is Linux-specific and unneeded at this place, as sizes are usually denoted with a size_t. As the signedness of max_size isn't relied on anywhere, replace it with a size_t. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/bareboximd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bareboximd.c b/scripts/bareboximd.c
index 7d4cbeb9a8..81a59ec63c 100644
--- a/scripts/bareboximd.c
+++ b/scripts/bareboximd.c
@@ -58,7 +58,7 @@ int imd_command_setenv(const char *variable_name, const char *value)
return -EINVAL;
}
-static int read_file_2(const char *filename, size_t *size, void **outbuf, loff_t max_size)
+static int read_file_2(const char *filename, size_t *size, void **outbuf, size_t max_size)
{
off_t fsize;
ssize_t rsize;