summaryrefslogtreecommitdiffstats
path: root/applypatch/bspatch.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-28 21:21:31 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-03-28 21:21:31 +0200
commitb5f84ef1c3bb029c0c1ec0984479a7477d5cf549 (patch)
tree4795145050d9337cb240ce05f3cbae88783d51f9 /applypatch/bspatch.cpp
parentMerge "updater: Clean up LoadSrcTgtVersion2()." am: f037b7b535 am: 51159a069d (diff)
parentapplypatch: Change the ssize_t length parameters to size_t. am: f7eb760fe7 (diff)
downloadandroid_bootable_recovery-b5f84ef1c3bb029c0c1ec0984479a7477d5cf549.tar
android_bootable_recovery-b5f84ef1c3bb029c0c1ec0984479a7477d5cf549.tar.gz
android_bootable_recovery-b5f84ef1c3bb029c0c1ec0984479a7477d5cf549.tar.bz2
android_bootable_recovery-b5f84ef1c3bb029c0c1ec0984479a7477d5cf549.tar.lz
android_bootable_recovery-b5f84ef1c3bb029c0c1ec0984479a7477d5cf549.tar.xz
android_bootable_recovery-b5f84ef1c3bb029c0c1ec0984479a7477d5cf549.tar.zst
android_bootable_recovery-b5f84ef1c3bb029c0c1ec0984479a7477d5cf549.zip
Diffstat (limited to 'applypatch/bspatch.cpp')
-rw-r--r--applypatch/bspatch.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/applypatch/bspatch.cpp b/applypatch/bspatch.cpp
index 9920c2be1..8ef7a068d 100644
--- a/applypatch/bspatch.cpp
+++ b/applypatch/bspatch.cpp
@@ -60,8 +60,8 @@ void ShowBSDiffLicense() {
);
}
-int ApplyBSDiffPatch(const unsigned char* old_data, ssize_t old_size, const Value* patch,
- ssize_t patch_offset, SinkFn sink, void* token, SHA_CTX* ctx) {
+int ApplyBSDiffPatch(const unsigned char* old_data, size_t old_size, const Value* patch,
+ size_t patch_offset, SinkFn sink, void* token, SHA_CTX* ctx) {
auto sha_sink = [&](const uint8_t* data, size_t len) {
len = sink(data, len, token);
if (ctx) SHA1_Update(ctx, data, len);
@@ -72,8 +72,8 @@ int ApplyBSDiffPatch(const unsigned char* old_data, ssize_t old_size, const Valu
patch->data.size(), sha_sink);
}
-int ApplyBSDiffPatchMem(const unsigned char* old_data, ssize_t old_size, const Value* patch,
- ssize_t patch_offset, std::vector<unsigned char>* new_data) {
+int ApplyBSDiffPatchMem(const unsigned char* old_data, size_t old_size, const Value* patch,
+ size_t patch_offset, std::vector<unsigned char>* new_data) {
auto vector_sink = [new_data](const uint8_t* data, size_t len) {
new_data->insert(new_data->end(), data, data + len);
return len;