summaryrefslogtreecommitdiffstats
path: root/src/MobileSync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/MobileSync.c')
-rw-r--r--src/MobileSync.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/MobileSync.c b/src/MobileSync.c
index 8a7d724..9e52f32 100644
--- a/src/MobileSync.c
+++ b/src/MobileSync.c
@@ -76,8 +76,8 @@ mobilesync_error_t mobilesync_client_new(iphone_device_t device, int dst_port,
76 && ver_2_val == MSYNC_VERSION_INT2) { 76 && ver_2_val == MSYNC_VERSION_INT2) {
77 77
78 array = plist_new_array(); 78 array = plist_new_array();
79 plist_add_sub_string_el(array, "DLMessageVersionExchange"); 79 plist_array_append_item(array, plist_new_string("DLMessageVersionExchange"));
80 plist_add_sub_string_el(array, "DLVersionsOk"); 80 plist_array_append_item(array, plist_new_string("DLVersionsOk"));
81 81
82 ret = mobilesync_send(client_loc, array); 82 ret = mobilesync_send(client_loc, array);
83 83
@@ -112,8 +112,8 @@ static void mobilesync_disconnect(mobilesync_client_t client)
112 return; 112 return;
113 113
114 plist_t array = plist_new_array(); 114 plist_t array = plist_new_array();
115 plist_add_sub_string_el(array, "DLMessageDisconnect"); 115 plist_array_append_item(array, plist_new_string("DLMessageDisconnect"));
116 plist_add_sub_string_el(array, "All done, thanks for the memories"); 116 plist_array_append_item(array, plist_new_string("All done, thanks for the memories"));
117 117
118 mobilesync_send(client, array); 118 mobilesync_send(client, array);
119 plist_free(array); 119 plist_free(array);