summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-02-02 20:15:36 +0100
committerGravatar Nikias Bassen2012-02-02 20:15:36 +0100
commita2ee90f60d1efa1e642b8e44882607c620f75414 (patch)
tree5223d44fdb176a21bea0fc9ed100a4137b32dbc0 /src
parent5421b825d98a0e84f7336e24083bbc4f123d00f6 (diff)
downloadidevicerestore-a2ee90f60d1efa1e642b8e44882607c620f75414.tar.gz
idevicerestore-a2ee90f60d1efa1e642b8e44882607c620f75414.tar.bz2
recovery: add missing string.h include and a cast to silence gcc
Diffstat (limited to 'src')
-rw-r--r--src/recovery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/recovery.c b/src/recovery.c
index 54ea14f..dd544c1 100644
--- a/src/recovery.c
+++ b/src/recovery.c
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <libirecovery.h>
#include <libimobiledevice/restore.h>
#include <libimobiledevice/libimobiledevice.h>
@@ -374,7 +375,7 @@ int recovery_get_ecid(struct idevicerestore_client_t* client, uint64_t* ecid) {
}
}
- recovery_error = irecv_get_ecid(client->recovery->client, ecid);
+ recovery_error = irecv_get_ecid(client->recovery->client, (long long unsigned int*)ecid);
if (recovery_error != IRECV_E_SUCCESS) {
return -1;
}