diff options
author | Nikias Bassen | 2012-02-14 21:17:23 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-02-14 21:17:23 +0100 |
commit | d7f8d0e0824d2213fb9811e9340586d1c704851b (patch) | |
tree | 8f34990961e736916f4a1afdc81fa3ebdefe83c2 /src/restore.c | |
parent | 47457408e39975e63f167e5d488bc5d80f0e36aa (diff) | |
download | idevicerestore-d7f8d0e0824d2213fb9811e9340586d1c704851b.tar.gz idevicerestore-d7f8d0e0824d2213fb9811e9340586d1c704851b.tar.bz2 |
remove duplicate CPID/BDID and devices structs
and use the ones from libirecovery.h instead
Diffstat (limited to 'src/restore.c')
-rw-r--r-- | src/restore.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/restore.c b/src/restore.c index 4452d46..df39b9d 100644 --- a/src/restore.c +++ b/src/restore.c @@ -169,13 +169,13 @@ int restore_check_device(const char* uuid) { } plist_get_string_val(node, &model); - for (i = 0; idevicerestore_devices[i].model != NULL; i++) { - if (!strcasecmp(model, idevicerestore_devices[i].model)) { + for (i = 0; irecv_devices[i].model != NULL; i++) { + if (!strcasecmp(model, irecv_devices[i].model)) { break; } } - return idevicerestore_devices[i].index; + return irecv_devices[i].index; } void restore_device_callback(const idevice_event_t* event, void* userdata) { |