aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 3041d6ca..944c2408 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1155,7 +1155,7 @@ static Device::BuiltinAction prompt_and_wait(Device* device, int status) {
1155 { 1155 {
1156 bool adb = (chosen_action == Device::APPLY_ADB_SIDELOAD); 1156 bool adb = (chosen_action == Device::APPLY_ADB_SIDELOAD);
1157 if (adb) { 1157 if (adb) {
1158 status = apply_from_adb(ui, &should_wipe_cache, TEMPORARY_INSTALL_FILE); 1158 status = apply_from_adb(&should_wipe_cache, TEMPORARY_INSTALL_FILE);
1159 } else { 1159 } else {
1160 status = apply_from_sdcard(device, &should_wipe_cache); 1160 status = apply_from_sdcard(device, &should_wipe_cache);
1161 } 1161 }
@@ -1584,7 +1584,7 @@ int main(int argc, char **argv) {
1584 if (!sideload_auto_reboot) { 1584 if (!sideload_auto_reboot) {
1585 ui->ShowText(true); 1585 ui->ShowText(true);
1586 } 1586 }
1587 status = apply_from_adb(ui, &should_wipe_cache, TEMPORARY_INSTALL_FILE); 1587 status = apply_from_adb(&should_wipe_cache, TEMPORARY_INSTALL_FILE);
1588 if (status == INSTALL_SUCCESS && should_wipe_cache) { 1588 if (status == INSTALL_SUCCESS && should_wipe_cache) {
1589 if (!wipe_cache(false, device)) { 1589 if (!wipe_cache(false, device)) {
1590 status = INSTALL_ERROR; 1590 status = INSTALL_ERROR;