summaryrefslogtreecommitdiffstats
path: root/tools/ideviceinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ideviceinfo.c')
-rw-r--r--tools/ideviceinfo.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/ideviceinfo.c b/tools/ideviceinfo.c
index 8635a48..c8d4cac 100644
--- a/tools/ideviceinfo.c
+++ b/tools/ideviceinfo.c
@@ -280,7 +280,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;
int simple = 0;
@@ -347,7 +347,7 @@ int main(int argc, char *argv[])
}
}
- ret = idevice_new(&phone, udid);
+ ret = idevice_new(&device, udid);
if (ret != IDEVICE_E_SUCCESS) {
if (udid) {
printf("No device found with udid %s, is it plugged in?\n", udid);
@@ -358,9 +358,9 @@ int main(int argc, char *argv[])
}
if (LOCKDOWN_E_SUCCESS != (simple ?
- lockdownd_client_new(phone, &client, "ideviceinfo"):
- lockdownd_client_new_with_handshake(phone, &client, "ideviceinfo"))) {
- idevice_free(phone);
+ lockdownd_client_new(device, &client, "ideviceinfo"):
+ lockdownd_client_new_with_handshake(device, &client, "ideviceinfo"))) {
+ idevice_free(device);
return -1;
}
@@ -394,7 +394,7 @@ int main(int argc, char *argv[])
if (domain != NULL)
free(domain);
lockdownd_client_free(client);
- idevice_free(phone);
+ idevice_free(device);
return 0;
}