summaryrefslogtreecommitdiffstats
path: root/applypatch/include/applypatch/imgpatch.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-03-28 00:12:48 +0200
committerTao Bao <tbao@google.com>2017-03-28 19:13:38 +0200
commitf7eb760fe76cb66c5d5341b03d6a66cc1f06d795 (patch)
tree150376048a310df4ac1f873bdf487ad9edf15e2d /applypatch/include/applypatch/imgpatch.h
parentMerge "updater: Clean up LoadSrcTgtVersion2()." (diff)
downloadandroid_bootable_recovery-f7eb760fe76cb66c5d5341b03d6a66cc1f06d795.tar
android_bootable_recovery-f7eb760fe76cb66c5d5341b03d6a66cc1f06d795.tar.gz
android_bootable_recovery-f7eb760fe76cb66c5d5341b03d6a66cc1f06d795.tar.bz2
android_bootable_recovery-f7eb760fe76cb66c5d5341b03d6a66cc1f06d795.tar.lz
android_bootable_recovery-f7eb760fe76cb66c5d5341b03d6a66cc1f06d795.tar.xz
android_bootable_recovery-f7eb760fe76cb66c5d5341b03d6a66cc1f06d795.tar.zst
android_bootable_recovery-f7eb760fe76cb66c5d5341b03d6a66cc1f06d795.zip
Diffstat (limited to '')
-rw-r--r--applypatch/include/applypatch/imgpatch.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/applypatch/include/applypatch/imgpatch.h b/applypatch/include/applypatch/imgpatch.h
index 6549f79f0..16e4c4f57 100644
--- a/applypatch/include/applypatch/imgpatch.h
+++ b/applypatch/include/applypatch/imgpatch.h
@@ -19,10 +19,9 @@
#include <sys/types.h>
-using SinkFn = ssize_t (*)(const unsigned char*, ssize_t, void*);
+using SinkFn = size_t (*)(const unsigned char*, size_t, void*);
-int ApplyImagePatch(const unsigned char* old_data, ssize_t old_size,
- const unsigned char* patch_data, ssize_t patch_size,
- SinkFn sink, void* token);
+int ApplyImagePatch(const unsigned char* old_data, size_t old_size, const unsigned char* patch_data,
+ size_t patch_size, SinkFn sink, void* token);
#endif // _APPLYPATCH_IMGPATCH_H