diff options
Diffstat (limited to 'dev/iphone_id.c')
| -rw-r--r-- | dev/iphone_id.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/iphone_id.c b/dev/iphone_id.c index dde15bc..1b8f8a1 100644 --- a/dev/iphone_id.c +++ b/dev/iphone_id.c | |||
| @@ -68,18 +68,18 @@ int main(int argc, char **argv) | |||
| 68 | return -2; | 68 | return -2; |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | if (IPHONE_E_SUCCESS != lockdownd_new_client(phone, &client)) { | 71 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { |
| 72 | iphone_free_device(phone); | 72 | iphone_free_device(phone); |
| 73 | fprintf(stderr, "ERROR: Connecting to device failed!\n"); | 73 | fprintf(stderr, "ERROR: Connecting to device failed!\n"); |
| 74 | return -2; | 74 | return -2; |
| 75 | } | 75 | } |
| 76 | 76 | ||
| 77 | if ((IPHONE_E_SUCCESS != lockdownd_get_device_name(client, &devname)) || !devname) { | 77 | if ((LOCKDOWN_E_SUCCESS != lockdownd_get_device_name(client, &devname)) || !devname) { |
| 78 | fprintf(stderr, "ERROR: Could not get device name!\n"); | 78 | fprintf(stderr, "ERROR: Could not get device name!\n"); |
| 79 | ret = -2; | 79 | ret = -2; |
| 80 | } | 80 | } |
| 81 | 81 | ||
| 82 | lockdownd_free_client(client); | 82 | lockdownd_client_free(client); |
| 83 | iphone_free_device(phone); | 83 | iphone_free_device(phone); |
| 84 | 84 | ||
| 85 | if (ret == 0) { | 85 | if (ret == 0) { |
