summaryrefslogtreecommitdiffstats
path: root/applypatch
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2012-02-28 12:07:30 -0800
committerDoug Zongker <dougz@android.com>2012-02-28 12:07:30 -0800
commitb07b293944c2002a39bbd804f0b6f590ed8458cd (patch)
tree45aea334fdfc1217d386891a4a795272907614c2 /applypatch
parent1c43c9741bc4d9f62f2e3262cea1309890d1bbd2 (diff)
downloadbootable_recovery-b07b293944c2002a39bbd804f0b6f590ed8458cd.zip
bootable_recovery-b07b293944c2002a39bbd804f0b6f590ed8458cd.tar.gz
bootable_recovery-b07b293944c2002a39bbd804f0b6f590ed8458cd.tar.bz2
fix build
Change-Id: I44a75f5451af053778be299b23274ecce9b2db76
Diffstat (limited to 'applypatch')
-rw-r--r--applypatch/applypatch.c2
-rw-r--r--applypatch/applypatch.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/applypatch/applypatch.c b/applypatch/applypatch.c
index 09ca2ad..00004e9 100644
--- a/applypatch/applypatch.c
+++ b/applypatch/applypatch.c
@@ -472,7 +472,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, char** const patch_sha1_str,
+int FindMatchingPatch(uint8_t* sha1, const char** patch_sha1_str,
int num_patches) {
int i;
uint8_t patch_sha1[SHA_DIGEST_SIZE];
diff --git a/applypatch/applypatch.h b/applypatch/applypatch.h
index e8ac3cc..fb58843 100644
--- a/applypatch/applypatch.h
+++ b/applypatch/applypatch.h
@@ -64,7 +64,7 @@ int LoadFileContents(const char* filename, FileContents* file,
int retouch_flag);
int SaveFileContents(const char* filename, const FileContents* file);
void FreeFileContents(FileContents* file);
-int FindMatchingPatch(uint8_t* sha1, char** const patch_sha1_str,
+int FindMatchingPatch(uint8_t* sha1, const char** patch_sha1_str,
int num_patches);
// bsdiff.c