Fix the fastboot build.
load_file takes an int64_t rather than a size_t to support large files on LP32.
Change-Id: I8d3032cab63c30c4158dbc521d3d520415cdf58f
diff --git a/fastboot/fastboot.cpp b/fastboot/fastboot.cpp
index 0bdc16d..0901310 100644
--- a/fastboot/fastboot.cpp
+++ b/fastboot/fastboot.cpp
@@ -801,9 +801,6 @@
static int do_bypass_unlock_command(int argc, char **argv)
{
- unsigned sz;
- void *data;
-
if (argc <= 2) return 0;
skip(2);
@@ -812,8 +809,10 @@
* and send that to the remote device.
*/
require(1);
- data = load_file(*argv, &sz);
- if (data == 0) die("could not load '%s': %s", *argv, strerror(errno));
+
+ int64_t sz;
+ void* data = load_file(*argv, &sz);
+ if (data == nullptr) die("could not load '%s': %s", *argv, strerror(errno));
fb_queue_download("unlock_message", data, sz);
fb_queue_command("flashing unlock_bootloader", "unlocking bootloader");
skip(1);