summaryrefslogtreecommitdiffstats
path: root/updater/blockimg.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-11-10 20:49:53 +0100
committerTao Bao <tbao@google.com>2017-11-10 21:18:34 +0100
commit1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077 (patch)
treea714b2480c23e5b286c2806ef6ccc076461fabbe /updater/blockimg.cpp
parentMerge "uncrypt: Move to Soong." (diff)
downloadandroid_bootable_recovery-1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077.tar
android_bootable_recovery-1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077.tar.gz
android_bootable_recovery-1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077.tar.bz2
android_bootable_recovery-1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077.tar.lz
android_bootable_recovery-1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077.tar.xz
android_bootable_recovery-1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077.tar.zst
android_bootable_recovery-1e0941f4f63d5ee56ad42aa3aa47eb6a8a155077.zip
Diffstat (limited to 'updater/blockimg.cpp')
-rw-r--r--updater/blockimg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/updater/blockimg.cpp b/updater/blockimg.cpp
index 1c931afef..08f9930ea 100644
--- a/updater/blockimg.cpp
+++ b/updater/blockimg.cpp
@@ -1318,7 +1318,7 @@ static int PerformCommandDiff(CommandParameters& params) {
RangeSinkWriter writer(params.fd, tgt);
if (params.cmdname[0] == 'i') { // imgdiff
- if (ApplyImagePatch(params.buffer.data(), blocks * BLOCKSIZE, &patch_value,
+ if (ApplyImagePatch(params.buffer.data(), blocks * BLOCKSIZE, patch_value,
std::bind(&RangeSinkWriter::Write, &writer, std::placeholders::_1,
std::placeholders::_2),
nullptr, nullptr) != 0) {
@@ -1327,7 +1327,7 @@ static int PerformCommandDiff(CommandParameters& params) {
return -1;
}
} else {
- if (ApplyBSDiffPatch(params.buffer.data(), blocks * BLOCKSIZE, &patch_value, 0,
+ if (ApplyBSDiffPatch(params.buffer.data(), blocks * BLOCKSIZE, patch_value, 0,
std::bind(&RangeSinkWriter::Write, &writer, std::placeholders::_1,
std::placeholders::_2),
nullptr) != 0) {