diff options
author | Tao Bao <tbao@google.com> | 2017-03-21 20:01:21 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-03-21 20:01:23 +0100 |
commit | 5b2bf90e13229c8df6a5c02233753a6bd6d1c928 (patch) | |
tree | aba97506271d30aad9c52d438caf0f83fd084dad /install.cpp | |
parent | Merge "Add testcases for load_keys()." (diff) | |
parent | verify_file: Add constness to a few addresses. (diff) | |
download | android_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.cpp | 2 |
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); |