summaryrefslogtreecommitdiffstats
path: root/src/normal.c
diff options
context:
space:
mode:
authorGravatar Joshua Hill2010-06-21 04:50:40 -0400
committerGravatar Joshua Hill2010-06-21 04:50:40 -0400
commit7edbc8417b760179337b507a6d957882b71dde2e (patch)
tree71b5ab4d386c212bc903f6d73faf56e9368cce1e /src/normal.c
parent930f4b350474435e011b9dca18424dd1c42ea353 (diff)
downloadidevicerestore-7edbc8417b760179337b507a6d957882b71dde2e.tar.gz
idevicerestore-7edbc8417b760179337b507a6d957882b71dde2e.tar.bz2
Fixed a few more compile errors, everything should compile fine now, but i'm not sure if it will run yet
Diffstat (limited to 'src/normal.c')
-rw-r--r--src/normal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/normal.c b/src/normal.c
index 29f3911..c9a1b45 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -225,7 +225,7 @@ int normal_check_device(const char* uuid) {
return idevicerestore_devices[i].index;
}
-int normal_enter_recovery(const char* uuid) {
+int normal_enter_recovery(struct idevicerestore_client_t* client) {
idevice_t device = NULL;
irecv_client_t recovery = NULL;
lockdownd_client_t lockdown = NULL;
@@ -233,7 +233,7 @@ int normal_enter_recovery(const char* uuid) {
idevice_error_t device_error = IDEVICE_E_SUCCESS;
lockdownd_error_t lockdown_error = LOCKDOWN_E_SUCCESS;
- device_error = idevice_new(&device, uuid);
+ device_error = idevice_new(&device, client->uuid);
if (device_error != IDEVICE_E_SUCCESS) {
error("ERROR: Unable to find device\n");
return -1;
@@ -259,7 +259,7 @@ int normal_enter_recovery(const char* uuid) {
lockdown = NULL;
device = NULL;
- if (recovery_open_with_timeout(&recovery) < 0) {
+ if (recovery_open_with_timeout(client) < 0) {
error("ERROR: Unable to enter recovery mode\n");
return -1;
}