summaryrefslogtreecommitdiffstats
path: root/tools/ideviceinfo.c
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2012-11-29 04:02:18 +0100
committerGravatar Nikias Bassen2012-11-29 04:02:18 +0100
commit14bacd927e8621d723a3d67c49f43a0485c3eff4 (patch)
tree7937869319b864201dfa5b82361b52df71cc1258 /tools/ideviceinfo.c
parentd28cb6b2b85bbaf97ae361aba531865e5bcaa898 (diff)
downloadlibimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.gz
libimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.bz2
tools: mass replace 'device' with 'phone' variable names
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}