summaryrefslogtreecommitdiffstats
path: root/install.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-21 01:09:13 +0100
committerTao Bao <tbao@google.com>2017-03-21 06:13:56 +0100
commit76fdb2419bfec0e747db2530379484a3dc571f34 (patch)
treeaba97506271d30aad9c52d438caf0f83fd084dad /install.cpp
parentMerge "Add testcases for load_keys()." (diff)
downloadandroid_bootable_recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar
android_bootable_recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar.gz
android_bootable_recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar.bz2
android_bootable_recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar.lz
android_bootable_recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar.xz
android_bootable_recovery-76fdb2419bfec0e747db2530379484a3dc571f34.tar.zst
android_bootable_recovery-76fdb2419bfec0e747db2530379484a3dc571f34.zip
Diffstat (limited to '')
-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);