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)
int main(int argc, char *argv[])
{
lockdownd_client_t client = NULL;
- idevice_t phone = NULL;
+ idevice_t device = NULL;
idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
int i;
const char* udid = NULL;
@@ -66,14 +66,14 @@ int main(int argc, char *argv[])
}
udid = argv[i];
- ret = idevice_new(&phone, udid);
+ ret = idevice_new(&device, udid);
if (ret != IDEVICE_E_SUCCESS) {
printf("No device found with udid %s, is it plugged in?\n", udid);
return -1;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "ideviceenterrecovery")) {
- idevice_free(phone);
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(device, &client, "ideviceenterrecovery")) {
+ idevice_free(device);
return -1;
}
@@ -86,7 +86,7 @@ int main(int argc, char *argv[])
printf("Device is successfully switching to recovery mode.\n");
lockdownd_client_free(client);
- idevice_free(phone);
+ idevice_free(device);
return 0;
}