summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-07-10 19:05:39 +0200
committerandroid-build-merger <android-build-merger@google.com>2018-07-10 19:05:39 +0200
commit6f60263d5ee8008d2f611cb6c49d7b70d0077431 (patch)
tree28768203f70081c7d5a76e872618ac0da67b735d /applypatch/applypatch.cpp
parentMerge "applypatch: Restrict applypatch_check to eMMC targets." am: e02cbaaa62 am: 254d43a3b9 (diff)
parentMerge "edify: Remove VAL_INVALID and move ValueType into Value class." am: 503ff38043 (diff)
downloadandroid_bootable_recovery-6f60263d5ee8008d2f611cb6c49d7b70d0077431.tar
android_bootable_recovery-6f60263d5ee8008d2f611cb6c49d7b70d0077431.tar.gz
android_bootable_recovery-6f60263d5ee8008d2f611cb6c49d7b70d0077431.tar.bz2
android_bootable_recovery-6f60263d5ee8008d2f611cb6c49d7b70d0077431.tar.lz
android_bootable_recovery-6f60263d5ee8008d2f611cb6c49d7b70d0077431.tar.xz
android_bootable_recovery-6f60263d5ee8008d2f611cb6c49d7b70d0077431.tar.zst
android_bootable_recovery-6f60263d5ee8008d2f611cb6c49d7b70d0077431.zip
Diffstat (limited to 'applypatch/applypatch.cpp')
-rw-r--r--applypatch/applypatch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/applypatch/applypatch.cpp b/applypatch/applypatch.cpp
index fc29493b4..b1f5607a6 100644
--- a/applypatch/applypatch.cpp
+++ b/applypatch/applypatch.cpp
@@ -553,7 +553,7 @@ int applypatch_flash(const char* source_filename, const char* target_filename,
static int GenerateTarget(const FileContents& source_file, const std::unique_ptr<Value>& patch,
const std::string& target_filename,
const uint8_t target_sha1[SHA_DIGEST_LENGTH], const Value* bonus_data) {
- if (patch->type != VAL_BLOB) {
+ if (patch->type != Value::Type::BLOB) {
LOG(ERROR) << "patch is not a blob";
return 1;
}