len was int but &len is passed to read_file(..., size_t *size), Fix this. Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx> --- lib/bootstrap/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bootstrap/disk.c b/lib/bootstrap/disk.c index a55d5d77f4cf..fd016166e6e4 100644 --- a/lib/bootstrap/disk.c +++ b/lib/bootstrap/disk.c @@ -18,7 +18,7 @@ void* bootstrap_read_disk(const char *dev, const char *fstype) { int ret; void *buf; - int len; + size_t len; const char *path = "/"; ret = mount(dev, fstype, path, NULL); -- 2.19.1 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox