aboutsummaryrefslogtreecommitdiffstats
path: root/updater/install.c
diff options
context:
space:
mode:
authorMark Salyzyn <salyzyn@google.com>2014-03-14 20:59:56 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-03-14 20:59:56 +0000
commit4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49 (patch)
tree8fa1fa41069b4c6991157ac484069121caab9767 /updater/install.c
parent239fb930e4d91de5d3a66997d32d43414055d40e (diff)
parent026ebe0214d6c1c9b3ddc22c35e9ac37e5f622bc (diff)
downloadbootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.zip
bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar.gz
bootable_recovery-4b6de1ba1ce0fff95c18a8abb7ba6e5762006d49.tar.bz2
am 026ebe02: Merge "Recovery 64-bit compile issues"
* commit '026ebe0214d6c1c9b3ddc22c35e9ac37e5f622bc': Recovery 64-bit compile issues
Diffstat (limited to 'updater/install.c')
-rw-r--r--updater/install.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/install.c b/updater/install.c
index aebd4f3..872cbf8 100644
--- a/updater/install.c
+++ b/updater/install.c
@@ -866,7 +866,7 @@ Value* FileGetPropFn(const char* name, State* state, int argc, Expr* argv[]) {
buffer = malloc(st.st_size+1);
if (buffer == NULL) {
- ErrorAbort(state, "%s: failed to alloc %lld bytes", name, st.st_size+1);
+ ErrorAbort(state, "%s: failed to alloc %lld bytes", name, (long long)st.st_size+1);
goto done;
}
@@ -879,7 +879,7 @@ Value* FileGetPropFn(const char* name, State* state, int argc, Expr* argv[]) {
if (fread(buffer, 1, st.st_size, f) != st.st_size) {
ErrorAbort(state, "%s: failed to read %lld bytes from %s",
- name, st.st_size+1, filename);
+ name, (long long)st.st_size+1, filename);
fclose(f);
goto done;
}