summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2018-12-04 10:13:18 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-12-05 08:52:12 +0100
commitc8bd6b5041b64f665b014557114cbaf62d0cc9ee (patch)
tree9a6301624fa7fb74fcb6b30766be37946e138971 /lib
parentf9628136214e3c8f8c74cf7b59cd37bf442521b4 (diff)
downloadbarebox-c8bd6b5041b64f665b014557114cbaf62d0cc9ee.tar.gz
barebox-c8bd6b5041b64f665b014557114cbaf62d0cc9ee.tar.xz
lib: bootstrap: fix instance of possibly mismatched pointer sizes
len was int but &len is passed to read_file(..., size_t *size), Fix this. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/bootstrap/disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bootstrap/disk.c b/lib/bootstrap/disk.c
index a55d5d77f4..fd016166e6 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);