summaryrefslogtreecommitdiffstats
path: root/applypatch/applypatch.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2016-12-28 23:16:56 +0100
committerandroid-build-merger <android-build-merger@google.com>2016-12-28 23:16:56 +0100
commit29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b (patch)
treee660531c8067736200cd35fd08e4768913641484 /applypatch/applypatch.cpp
parentMerge "Add tests for imgdiff." (diff)
parentMerge "applypatch: Don't expose FindMatchingPatch()." (diff)
downloadandroid_bootable_recovery-29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b.tar
android_bootable_recovery-29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b.tar.gz
android_bootable_recovery-29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b.tar.bz2
android_bootable_recovery-29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b.tar.lz
android_bootable_recovery-29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b.tar.xz
android_bootable_recovery-29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b.tar.zst
android_bootable_recovery-29e1b7b4b255bda68d5502c97d3c2d0c3ec1b25b.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 8682e128b..500663120 100644
--- a/applypatch/applypatch.cpp
+++ b/applypatch/applypatch.cpp
@@ -391,7 +391,7 @@ int ParseSha1(const char* str, uint8_t* digest) {
// Search an array of sha1 strings for one matching the given sha1.
// Return the index of the match on success, or -1 if no match is
// found.
-int FindMatchingPatch(uint8_t* sha1, const std::vector<std::string>& patch_sha1_str) {
+static int FindMatchingPatch(uint8_t* sha1, const std::vector<std::string>& patch_sha1_str) {
for (size_t i = 0; i < patch_sha1_str.size(); ++i) {
uint8_t patch_sha1[SHA_DIGEST_LENGTH];
if (ParseSha1(patch_sha1_str[i].c_str(), patch_sha1) == 0 &&