summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-21 20:13:07 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-03-21 20:13:07 +0100
commit1c456cd3a5930c5ca90e0a494a6ef169ea019096 (patch)
tree02d28a8f4945a978bbf449d058d5e9ee05236646 /install.cpp
parentMerge "Add testcases for load_keys()." am: 110102f37e (diff)
parentMerge "verify_file: Add constness to a few addresses." (diff)
downloadandroid_bootable_recovery-1c456cd3a5930c5ca90e0a494a6ef169ea019096.tar
android_bootable_recovery-1c456cd3a5930c5ca90e0a494a6ef169ea019096.tar.gz
android_bootable_recovery-1c456cd3a5930c5ca90e0a494a6ef169ea019096.tar.bz2
android_bootable_recovery-1c456cd3a5930c5ca90e0a494a6ef169ea019096.tar.lz
android_bootable_recovery-1c456cd3a5930c5ca90e0a494a6ef169ea019096.tar.xz
android_bootable_recovery-1c456cd3a5930c5ca90e0a494a6ef169ea019096.tar.zst
android_bootable_recovery-1c456cd3a5930c5ca90e0a494a6ef169ea019096.zip
Diffstat (limited to 'install.cpp')
-rw-r--r--install.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.cpp b/install.cpp
index 68d3f54bc..a256d9b13 100644
--- a/install.cpp
+++ b/install.cpp
@@ -589,7 +589,7 @@ bool verify_package(const unsigned char* package_data, size_t package_size) {
// Verify package.
ui->Print("Verifying update package...\n");
auto t0 = std::chrono::system_clock::now();
- int err = verify_file(const_cast<unsigned char*>(package_data), package_size, loadedKeys,
+ int err = verify_file(package_data, package_size, loadedKeys,
std::bind(&RecoveryUI::SetProgress, ui, std::placeholders::_1));
std::chrono::duration<double> duration = std::chrono::system_clock::now() - t0;
ui->Print("Update package verification took %.1f s (result %d).\n", duration.count(), err);