summaryrefslogtreecommitdiffstats
path: root/src/idevicerestore.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2012-07-17 16:05:17 +0200
committerGravatar Nikias Bassen2012-07-17 16:05:17 +0200
commit995ed659864e14b7c55ee948889b3ffff7ff4991 (patch)
treec24e26ef05213a05e75d702e3123cb70fb0aa4f9 /src/idevicerestore.c
parent5e8990bf24b1f5319d1d1d00007f02919753b175 (diff)
downloadidevicerestore-995ed659864e14b7c55ee948889b3ffff7ff4991.tar.gz
idevicerestore-995ed659864e14b7c55ee948889b3ffff7ff4991.tar.bz2
main/restore: Pass full client to restore mode and device discovery functions
Diffstat (limited to 'src/idevicerestore.c')
-rw-r--r--src/idevicerestore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idevicerestore.c b/src/idevicerestore.c
index ed89ae8..47c9a4c 100644
--- a/src/idevicerestore.c
+++ b/src/idevicerestore.c
@@ -823,7 +823,7 @@ int check_mode(struct idevicerestore_client_t* client) {
mode = MODE_NORMAL;
}
- else if (!client->ecid && client->udid && (restore_check_mode(client->udid) == 0)) {
+ else if (!client->ecid && client->udid && (restore_check_mode(client) == 0)) {
mode = MODE_RESTORE;
}
@@ -839,7 +839,7 @@ int check_device(struct idevicerestore_client_t* client) {
switch (client->mode->index) {
case MODE_RESTORE:
if (!client->ecid && client->udid) {
- device = restore_check_device(client->udid);
+ device = restore_check_device(client);
if (device < 0) {
device = DEVICE_UNKNOWN;
}