diff options
Diffstat (limited to 'dev/main.c')
| -rw-r--r-- | dev/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -87,14 +87,14 @@ int main(int argc, char *argv[]) | |||
| 87 | if (uuid) | 87 | if (uuid) |
| 88 | free(uuid); | 88 | free(uuid); |
| 89 | 89 | ||
| 90 | if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { | 90 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { |
| 91 | iphone_free_device(phone); | 91 | iphone_free_device(phone); |
| 92 | printf("Exiting.\n"); | 92 | printf("Exiting.\n"); |
| 93 | return -1; | 93 | return -1; |
| 94 | } | 94 | } |
| 95 | 95 | ||
| 96 | char *nnn = NULL; | 96 | char *nnn = NULL; |
| 97 | if (IPHONE_E_SUCCESS == lockdownd_get_device_name(client, &nnn)) { | 97 | if (LOCKDOWN_E_SUCCESS == lockdownd_get_device_name(client, &nnn)) { |
| 98 | printf("DeviceName : %s\n", nnn); | 98 | printf("DeviceName : %s\n", nnn); |
| 99 | free(nnn); | 99 | free(nnn); |
| 100 | } | 100 | } |
| @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) | |||
| 248 | 248 | ||
| 249 | printf("All done.\n"); | 249 | printf("All done.\n"); |
| 250 | 250 | ||
| 251 | lockdownd_free_client(client); | 251 | lockdownd_client_free(client); |
| 252 | iphone_free_device(phone); | 252 | iphone_free_device(phone); |
| 253 | 253 | ||
| 254 | return 0; | 254 | return 0; |
