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 <[email protected]>
---
 scripts/bareboximd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/bareboximd.c b/scripts/bareboximd.c
index 7d4cbeb9a83f..81a59ec63c23 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;
-- 
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to