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)
280int main(int argc, char *argv[]) 280int main(int argc, char *argv[])
281{ 281{
282 lockdownd_client_t client = NULL; 282 lockdownd_client_t client = NULL;
283 idevice_t phone = NULL; 283 idevice_t device = NULL;
284 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; 284 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
285 int i; 285 int i;
286 int simple = 0; 286 int simple = 0;
@@ -347,7 +347,7 @@ int main(int argc, char *argv[])
347 } 347 }
348 } 348 }
349 349
350 ret = idevice_new(&phone, udid); 350 ret = idevice_new(&device, udid);
351 if (ret != IDEVICE_E_SUCCESS) { 351 if (ret != IDEVICE_E_SUCCESS) {
352 if (udid) { 352 if (udid) {
353 printf("No device found with udid %s, is it plugged in?\n", udid); 353 printf("No device found with udid %s, is it plugged in?\n", udid);
@@ -358,9 +358,9 @@ int main(int argc, char *argv[])
358 } 358 }
359 359
360 if (LOCKDOWN_E_SUCCESS != (simple ? 360 if (LOCKDOWN_E_SUCCESS != (simple ?
361 lockdownd_client_new(phone, &client, "ideviceinfo"): 361 lockdownd_client_new(device, &client, "ideviceinfo"):
362 lockdownd_client_new_with_handshake(phone, &client, "ideviceinfo"))) { 362 lockdownd_client_new_with_handshake(device, &client, "ideviceinfo"))) {
363 idevice_free(phone); 363 idevice_free(device);
364 return -1; 364 return -1;
365 } 365 }
366 366
@@ -394,7 +394,7 @@ int main(int argc, char *argv[])
394 if (domain != NULL) 394 if (domain != NULL)
395 free(domain); 395 free(domain);
396 lockdownd_client_free(client); 396 lockdownd_client_free(client);
397 idevice_free(phone); 397 idevice_free(device);
398 398
399 return 0; 399 return 0;
400} 400}