summaryrefslogtreecommitdiffstats
path: root/tools/idevicedate.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/idevicedate.c
parentd28cb6b2b85bbaf97ae361aba531865e5bcaa898 (diff)
downloadlibimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.gz
libimobiledevice-14bacd927e8621d723a3d67c49f43a0485c3eff4.tar.bz2
tools: mass replace 'device' with 'phone' variable names
Diffstat (limited to 'tools/idevicedate.c')
-rw-r--r--tools/idevicedate.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/idevicedate.c b/tools/idevicedate.c
index 19f7c1d..bde6786 100644
--- a/tools/idevicedate.c
+++ b/tools/idevicedate.c
@@ -54,7 +54,7 @@ static void print_usage(int argc, char **argv)
54int main(int argc, char *argv[]) 54int main(int argc, char *argv[])
55{ 55{
56 lockdownd_client_t client = NULL; 56 lockdownd_client_t client = NULL;
57 idevice_t phone = NULL; 57 idevice_t device = NULL;
58 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR; 58 idevice_error_t ret = IDEVICE_E_UNKNOWN_ERROR;
59 int i; 59 int i;
60 const char* udid = NULL; 60 const char* udid = NULL;
@@ -123,7 +123,7 @@ int main(int argc, char *argv[])
123 } 123 }
124 } 124 }
125 125
126 ret = idevice_new(&phone, udid); 126 ret = idevice_new(&device, udid);
127 if (ret != IDEVICE_E_SUCCESS) { 127 if (ret != IDEVICE_E_SUCCESS) {
128 if (udid) { 128 if (udid) {
129 printf("No device found with udid %s, is it plugged in?\n", udid); 129 printf("No device found with udid %s, is it plugged in?\n", udid);
@@ -133,8 +133,8 @@ int main(int argc, char *argv[])
133 return -1; 133 return -1;
134 } 134 }
135 135
136 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "idevicedate")) { 136 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(device, &client, "idevicedate")) {
137 idevice_free(phone); 137 idevice_free(device);
138 return -1; 138 return -1;
139 } 139 }
140 140
@@ -183,7 +183,7 @@ int main(int argc, char *argv[])
183 } 183 }
184 184
185 lockdownd_client_free(client); 185 lockdownd_client_free(client);
186 idevice_free(phone); 186 idevice_free(device);
187 187
188 return 0; 188 return 0;
189} 189}