diff options
Diffstat (limited to 'tools/idevicedate.c')
| -rw-r--r-- | tools/idevicedate.c | 10 |
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) | |||
| 54 | int main(int argc, char *argv[]) | 54 | int 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 | } |
