diff options
author | Tao Bao <tbao@google.com> | 2016-12-28 23:32:28 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2016-12-28 23:32:28 +0100 |
commit | c0044e9f89f626ef4983df219967117b714dcfc8 (patch) | |
tree | 4e12ff6a9d0882076897f11302c6043b0d86b0a4 /applypatch/applypatch.cpp | |
parent | Merge "Add tests for imgdiff." am: 344c8eb453 am: 4fe022c4ed (diff) | |
parent | Merge "applypatch: Don't expose FindMatchingPatch()." am: b8d6523acf (diff) | |
download | android_bootable_recovery-c0044e9f89f626ef4983df219967117b714dcfc8.tar android_bootable_recovery-c0044e9f89f626ef4983df219967117b714dcfc8.tar.gz android_bootable_recovery-c0044e9f89f626ef4983df219967117b714dcfc8.tar.bz2 android_bootable_recovery-c0044e9f89f626ef4983df219967117b714dcfc8.tar.lz android_bootable_recovery-c0044e9f89f626ef4983df219967117b714dcfc8.tar.xz android_bootable_recovery-c0044e9f89f626ef4983df219967117b714dcfc8.tar.zst android_bootable_recovery-c0044e9f89f626ef4983df219967117b714dcfc8.zip |
Diffstat (limited to 'applypatch/applypatch.cpp')
-rw-r--r-- | applypatch/applypatch.cpp | 2 |
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 && |