diff options
author | Joshua Hill | 2010-06-21 04:50:40 -0400 |
---|---|---|
committer | Joshua Hill | 2010-06-21 04:50:40 -0400 |
commit | 7edbc8417b760179337b507a6d957882b71dde2e (patch) | |
tree | 71b5ab4d386c212bc903f6d73faf56e9368cce1e /src/normal.c | |
parent | 930f4b350474435e011b9dca18424dd1c42ea353 (diff) | |
download | idevicerestore-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.c | 6 |
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; } |