diff options
author | Doug Zongker <dougz@android.com> | 2014-02-14 00:07:56 +0100 |
---|---|---|
committer | Doug Zongker <dougz@android.com> | 2014-02-14 00:34:18 +0100 |
commit | 0d32f259cddeaf46917bdc4af3514114c206dd76 (patch) | |
tree | 6d6a6f6793cd8a335dbc6f3d6ed21598748378dd /updater/install.c | |
parent | remove 'retouch' ASLR support (diff) | |
download | android_bootable_recovery-0d32f259cddeaf46917bdc4af3514114c206dd76.tar android_bootable_recovery-0d32f259cddeaf46917bdc4af3514114c206dd76.tar.gz android_bootable_recovery-0d32f259cddeaf46917bdc4af3514114c206dd76.tar.bz2 android_bootable_recovery-0d32f259cddeaf46917bdc4af3514114c206dd76.tar.lz android_bootable_recovery-0d32f259cddeaf46917bdc4af3514114c206dd76.tar.xz android_bootable_recovery-0d32f259cddeaf46917bdc4af3514114c206dd76.tar.zst android_bootable_recovery-0d32f259cddeaf46917bdc4af3514114c206dd76.zip |
Diffstat (limited to '')
-rw-r--r-- | updater/install.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/updater/install.c b/updater/install.c index e85ba50ae..ccafad9c2 100644 --- a/updater/install.c +++ b/updater/install.c @@ -52,7 +52,7 @@ #endif // Take a sha-1 digest and return it as a newly-allocated hex string. -static char* PrintSha1(uint8_t* digest) { +static char* PrintSha1(const uint8_t* digest) { char* buffer = malloc(SHA_DIGEST_SIZE*2 + 1); int i; const char* alphabet = "0123456789abcdef"; @@ -1115,9 +1115,9 @@ Value* SysPatchFn(const char* name, State* state, int argc, Expr* argv[]) { pos += read; } rewind(src); - uint8_t* digest = SHA_final(&ctx); + const uint8_t* digest = SHA_final(&ctx); - char* hexdigest = PrintSha1(digest); + const char* hexdigest = PrintSha1(digest); printf(" system partition sha1 = %s\n", hexdigest); if (memcmp(digest, target_digest, SHA_DIGEST_SIZE) == 0) { |