summaryrefslogtreecommitdiffstats
path: root/dev/iphone_id.c
diff options
context:
space:
mode:
authorGravatar Matt Colyer2009-07-26 19:34:22 -0700
committerGravatar Matt Colyer2009-07-26 19:34:22 -0700
commiteea538c94f01f8054f69f059614f19400187a472 (patch)
tree209a12dc8c8eaece15b8153d15e689c8c2147ab6 /dev/iphone_id.c
parent8ebfd7d8eea89bb27e4e6dbb1f37fd90d98b439c (diff)
parent19c9750d670435ce430f0fc85a55faf127bdfbf9 (diff)
downloadlibimobiledevice-eea538c94f01f8054f69f059614f19400187a472.tar.gz
libimobiledevice-eea538c94f01f8054f69f059614f19400187a472.tar.bz2
Merge commit 'martin-s/martin'
[#46 state:resolved]
Diffstat (limited to 'dev/iphone_id.c')
-rw-r--r--dev/iphone_id.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/dev/iphone_id.c b/dev/iphone_id.c
index 15081f0..f68fc8b 100644
--- a/dev/iphone_id.c
+++ b/dev/iphone_id.c
@@ -60,7 +60,7 @@ int main(int argc, char **argv)
60 return 0; 60 return 0;
61 } 61 }
62 62
63 iphone_set_debug(0); 63 iphone_set_debug_level(0);
64 64
65 iphone_get_device_by_uuid(&phone, argv[0]); 65 iphone_get_device_by_uuid(&phone, argv[0]);
66 if (!phone) { 66 if (!phone) {
@@ -68,19 +68,19 @@ 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_device_free(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_device_free(phone);
84 84
85 if (ret == 0) { 85 if (ret == 0) {
86 printf("%s\n", devname); 86 printf("%s\n", devname);