diff options
Diffstat (limited to 'src/MobileSync.c')
| -rw-r--r-- | src/MobileSync.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/MobileSync.c b/src/MobileSync.c index 839ed2b..b16a51b 100644 --- a/src/MobileSync.c +++ b/src/MobileSync.c | |||
| @@ -50,8 +50,7 @@ iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int | |||
| 50 | //first receive version | 50 | //first receive version |
| 51 | ret = iphone_msync_recv(client_loc, &array); | 51 | ret = iphone_msync_recv(client_loc, &array); |
| 52 | 52 | ||
| 53 | plist_t msg_node = | 53 | plist_t msg_node = plist_find_node_by_string(array, "DLMessageVersionExchange"); |
| 54 | plist_find_node_by_string(array, "DLMessageVersionExchange"); | ||
| 55 | plist_t ver_1 = plist_get_next_sibling(msg_node); | 54 | plist_t ver_1 = plist_get_next_sibling(msg_node); |
| 56 | plist_t ver_2 = plist_get_next_sibling(ver_1); | 55 | plist_t ver_2 = plist_get_next_sibling(ver_1); |
| 57 | 56 | ||
| @@ -82,8 +81,7 @@ iphone_error_t iphone_msync_new_client(iphone_device_t device, int src_port, int | |||
| 82 | array = NULL; | 81 | array = NULL; |
| 83 | 82 | ||
| 84 | ret = iphone_msync_recv(client_loc, &array); | 83 | ret = iphone_msync_recv(client_loc, &array); |
| 85 | plist_t rep_node = | 84 | plist_t rep_node = plist_find_node_by_string(array, "DLMessageDeviceReady"); |
| 86 | plist_find_node_by_string(array, "DLMessageDeviceReady"); | ||
| 87 | 85 | ||
| 88 | if (rep_node) { | 86 | if (rep_node) { |
| 89 | ret = IPHONE_E_SUCCESS; | 87 | ret = IPHONE_E_SUCCESS; |
| @@ -245,8 +243,7 @@ iphone_error_t iphone_msync_get_all_contacts(iphone_msync_client_t client) | |||
| 245 | plist_t switch_node; | 243 | plist_t switch_node; |
| 246 | 244 | ||
| 247 | contact_node = plist_find_node_by_string(array, "com.apple.Contacts"); | 245 | contact_node = plist_find_node_by_string(array, "com.apple.Contacts"); |
| 248 | switch_node = | 246 | switch_node = plist_find_node_by_string(array, "SDMessageDeviceReadyToReceiveChanges"); |
| 249 | plist_find_node_by_string(array, "SDMessageDeviceReadyToReceiveChanges"); | ||
| 250 | 247 | ||
| 251 | while (NULL == switch_node) { | 248 | while (NULL == switch_node) { |
| 252 | 249 | ||
