summaryrefslogtreecommitdiffstats
path: root/tools/idevice_id.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/idevice_id.c')
-rw-r--r--tools/idevice_id.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/idevice_id.c b/tools/idevice_id.c
index 108aad4..c9ade46 100644
--- a/tools/idevice_id.c
+++ b/tools/idevice_id.c
@@ -46,7 +46,7 @@ static void print_usage(int argc, char **argv)
46 46
47int main(int argc, char **argv) 47int main(int argc, char **argv)
48{ 48{
49 idevice_t phone = NULL; 49 idevice_t device = NULL;
50 lockdownd_client_t client = NULL; 50 lockdownd_client_t client = NULL;
51 char **dev_list = NULL; 51 char **dev_list = NULL;
52 char *devname = NULL; 52 char *devname = NULL;
@@ -83,14 +83,14 @@ int main(int argc, char **argv)
83 83
84 switch (mode) { 84 switch (mode) {
85 case MODE_SHOW_ID: 85 case MODE_SHOW_ID:
86 idevice_new(&phone, udid); 86 idevice_new(&device, udid);
87 if (!phone) { 87 if (!device) {
88 fprintf(stderr, "ERROR: No device with UDID=%s attached.\n", udid); 88 fprintf(stderr, "ERROR: No device with UDID=%s attached.\n", udid);
89 return -2; 89 return -2;
90 } 90 }
91 91
92 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "idevice_id")) { 92 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(device, &client, "idevice_id")) {
93 idevice_free(phone); 93 idevice_free(device);
94 fprintf(stderr, "ERROR: Connecting to device failed!\n"); 94 fprintf(stderr, "ERROR: Connecting to device failed!\n");
95 return -2; 95 return -2;
96 } 96 }
@@ -101,7 +101,7 @@ int main(int argc, char **argv)
101 } 101 }
102 102
103 lockdownd_client_free(client); 103 lockdownd_client_free(client);
104 idevice_free(phone); 104 idevice_free(device);
105 105
106 if (ret == 0) { 106 if (ret == 0) {
107 printf("%s\n", devname); 107 printf("%s\n", devname);