diff options
author | Nikias Bassen | 2012-11-29 04:02:18 +0100 |
---|---|---|
committer | Nikias Bassen | 2012-11-29 04:02:18 +0100 |
commit | 14bacd927e8621d723a3d67c49f43a0485c3eff4 (patch) | |
tree | 7937869319b864201dfa5b82361b52df71cc1258 /tools/idevice_id.c | |
parent | d28cb6b2b85bbaf97ae361aba531865e5bcaa898 (diff) | |
download | libimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.gz libimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.bz2 |
tools: mass replace 'device' with 'phone' variable names
Diffstat (limited to 'tools/idevice_id.c')
-rw-r--r-- | tools/idevice_id.c | 12 |
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) int main(int argc, char **argv) { - idevice_t phone = NULL; + idevice_t device = NULL; lockdownd_client_t client = NULL; char **dev_list = NULL; char *devname = NULL; @@ -83,14 +83,14 @@ int main(int argc, char **argv) switch (mode) { case MODE_SHOW_ID: - idevice_new(&phone, udid); - if (!phone) { + idevice_new(&device, udid); + if (!device) { fprintf(stderr, "ERROR: No device with UDID=%s attached.\n", udid); return -2; } - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "idevice_id")) { - idevice_free(phone); + if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(device, &client, "idevice_id")) { + idevice_free(device); fprintf(stderr, "ERROR: Connecting to device failed!\n"); return -2; } @@ -101,7 +101,7 @@ int main(int argc, char **argv) } lockdownd_client_free(client); - idevice_free(phone); + idevice_free(device); if (ret == 0) { printf("%s\n", devname); |