Loading applypatch/applypatch.c +1 −1 Original line number Diff line number Diff line Loading @@ -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]; Loading applypatch/applypatch.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading minelf/Retouch.c +2 −2 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ bool retouch_one_library(const char *binary_name, success = false; goto out; } if (SaveFileContents(CACHE_TEMP_SOURCE, file) < 0) { if (SaveFileContents(CACHE_TEMP_SOURCE, &file) < 0) { printf("Failed to back up source file.\n"); success = false; goto out; Loading @@ -357,7 +357,7 @@ bool retouch_one_library(const char *binary_name, printf("(now %ld bytes free for target)\n", (long)free_space); } result = SaveFileContents(binary_name_atomic, file); result = SaveFileContents(binary_name_atomic, &file); if (result != 0) { // Maybe the filesystem was optimistic: retry. enough_space = false; Loading Loading
applypatch/applypatch.c +1 −1 Original line number Diff line number Diff line Loading @@ -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]; Loading
applypatch/applypatch.h +1 −1 Original line number Diff line number Diff line Loading @@ -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 Loading
minelf/Retouch.c +2 −2 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ bool retouch_one_library(const char *binary_name, success = false; goto out; } if (SaveFileContents(CACHE_TEMP_SOURCE, file) < 0) { if (SaveFileContents(CACHE_TEMP_SOURCE, &file) < 0) { printf("Failed to back up source file.\n"); success = false; goto out; Loading @@ -357,7 +357,7 @@ bool retouch_one_library(const char *binary_name, printf("(now %ld bytes free for target)\n", (long)free_space); } result = SaveFileContents(binary_name_atomic, file); result = SaveFileContents(binary_name_atomic, &file); if (result != 0) { // Maybe the filesystem was optimistic: retry. enough_space = false; Loading