summaryrefslogtreecommitdiffstats
path: root/dev/msyncclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev/msyncclient.c')
-rw-r--r--dev/msyncclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dev/msyncclient.c b/dev/msyncclient.c
index 53018ac..c136ef2 100644
--- a/dev/msyncclient.c
+++ b/dev/msyncclient.c
@@ -141,19 +141,19 @@ static mobilesync_error_t mobilesync_get_all_contacts(mobilesync_client_t client
int main(int argc, char *argv[])
{
- int port = 0;
+ uint16_t port = 0;
lockdownd_client_t client = NULL;
iphone_device_t phone = NULL;
if (argc > 1 && !strcasecmp(argv[1], "--debug"))
- iphone_set_debug_mask(DBGMASK_MOBILESYNC);
+ iphone_set_debug_level(1);
if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) {
printf("No iPhone found, is it plugged in?\n");
return -1;
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) {
iphone_device_free(phone);
return -1;
}