diff options
author | Nikias Bassen | 2013-10-02 14:30:19 +0200 |
---|---|---|
committer | Nikias Bassen | 2013-10-02 14:30:19 +0200 |
commit | 8b3c005184e1b03666e67cc68014e3496664066d (patch) | |
tree | f88a29a3bbeb29b135f7d9dadbdc01aa14ff28db /src | |
parent | 0326deeba3ec0f11e0386d9448bf670f24dfff22 (diff) | |
download | idevicerestore-8b3c005184e1b03666e67cc68014e3496664066d.tar.gz idevicerestore-8b3c005184e1b03666e67cc68014e3496664066d.tar.bz2 |
asr: supress compiler warnings with proper cast
Diffstat (limited to 'src')
-rw-r--r-- | src/asr.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -24,6 +24,7 @@ #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include <libimobiledevice/libimobiledevice.h> #include <openssl/sha.h> @@ -381,7 +382,7 @@ int asr_send_payload(asr_client_t asr, const char* filesystem) { if (add_checksum) { // get sha1 of last chunk - SHA1_Final(data, &sha1); + SHA1_Final((unsigned char*)data, &sha1); // send checksum if (asr_send_buffer(asr, data, 20) < 0) { @@ -409,7 +410,7 @@ int asr_send_payload(asr_client_t asr, const char* filesystem) { // if last chunk wasn't terminated with a checksum we do it here if (asr->checksum_chunks && !add_checksum) { // get sha1 of last chunk - SHA1_Final(data, &sha1); + SHA1_Final((unsigned char*)data, &sha1); // send checksum if (asr_send_buffer(asr, data, 20) < 0) { |