summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-21 20:01:21 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-03-21 20:01:23 +0100
commit5b2bf90e13229c8df6a5c02233753a6bd6d1c928 (patch)
treeaba97506271d30aad9c52d438caf0f83fd084dad /install.cpp
parentMerge "Add testcases for load_keys()." (diff)
parentverify_file: Add constness to a few addresses. (diff)
downloadandroid_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar
android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.gz
android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.bz2
android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.lz
android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.xz
android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.tar.zst
android_bootable_recovery-5b2bf90e13229c8df6a5c02233753a6bd6d1c928.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 9123fc276..db8fb97db 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);