[PATCH] lib: bootstrap: fix instance of possibly mismatched pointer sizes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux