summaryrefslogtreecommitdiffstats
path: root/src/normal.c
diff options
context:
space:
mode:
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 9902597..8547b2c 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -248,13 +248,13 @@ int normal_check_device(struct idevicerestore_client_t* client) {
plist_get_string_val(product_type_node, &product_type);
plist_free(product_type_node);
- for (i = 0; idevicerestore_devices[i].product != NULL; i++) {
- if (!strcmp(product_type, idevicerestore_devices[i].product)) {
+ for (i = 0; irecv_devices[i].product != NULL; i++) {
+ if (!strcmp(product_type, irecv_devices[i].product)) {
break;
}
}
- return idevicerestore_devices[i].index;
+ return irecv_devices[i].index;
}
int normal_enter_recovery(struct idevicerestore_client_t* client) {