summaryrefslogtreecommitdiffstats
path: root/tools/ideviceenterrecovery.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ideviceenterrecovery.c')
-rw-r--r--tools/ideviceenterrecovery.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/ideviceenterrecovery.c b/tools/ideviceenterrecovery.c
index 62df70f..444d531 100644
--- a/tools/ideviceenterrecovery.c
+++ b/tools/ideviceenterrecovery.c
@@ -42,7 +42,7 @@ static void print_usage(int argc, char **argv)
42int main(int argc, char *argv[]) 42int main(int argc, char *argv[])
43{ 43{
44 lockdownd_client_t client = NULL; 44 lockdownd_client_t client = NULL;
45 idevice_t phone = NULL; 45 idevice_t device = NULL;
46 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; 46 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
47 int i; 47 int i;
48 const char* udid = NULL; 48 const char* udid = NULL;
@@ -66,14 +66,14 @@ int main(int argc, char *argv[])
66 } 66 }
67 udid = argv[i]; 67 udid = argv[i];
68 68
69 ret = idevice_new(&phone, udid); 69 ret = idevice_new(&device, udid);
70 if (ret != IDEVICE_E_SUCCESS) { 70 if (ret != IDEVICE_E_SUCCESS) {
71 printf("No device found with udid %s, is it plugged in?\n", udid); 71 printf("No device found with udid %s, is it plugged in?\n", udid);
72 return -1; 72 return -1;
73 } 73 }
74 74
75 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "ideviceenterrecovery")) { 75 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(device, &client, "ideviceenterrecovery")) {
76 idevice_free(phone); 76 idevice_free(device);
77 return -1; 77 return -1;
78 } 78 }
79 79
@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
86 printf("Device is successfully switching to recovery mode.\n"); 86 printf("Device is successfully switching to recovery mode.\n");
87 87
88 lockdownd_client_free(client); 88 lockdownd_client_free(client);
89 idevice_free(phone); 89 idevice_free(device);
90 90
91 return 0; 91 return 0;
92} 92}