diff options
Diffstat (limited to 'dev/msyncclient.c')
| -rw-r--r-- | dev/msyncclient.c | 6 |
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 | |||
| 141 | 141 | ||
| 142 | int main(int argc, char *argv[]) | 142 | int main(int argc, char *argv[]) |
| 143 | { | 143 | { |
| 144 | int port = 0; | 144 | uint16_t port = 0; |
| 145 | lockdownd_client_t client = NULL; | 145 | lockdownd_client_t client = NULL; |
| 146 | iphone_device_t phone = NULL; | 146 | iphone_device_t phone = NULL; |
| 147 | 147 | ||
| 148 | if (argc > 1 && !strcasecmp(argv[1], "--debug")) | 148 | if (argc > 1 && !strcasecmp(argv[1], "--debug")) |
| 149 | iphone_set_debug_mask(DBGMASK_MOBILESYNC); | 149 | iphone_set_debug_level(1); |
| 150 | 150 | ||
| 151 | if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) { | 151 | if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) { |
| 152 | printf("No iPhone found, is it plugged in?\n"); | 152 | printf("No iPhone found, is it plugged in?\n"); |
| 153 | return -1; | 153 | return -1; |
| 154 | } | 154 | } |
| 155 | 155 | ||
| 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 156 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "msyncclient")) { |
| 157 | iphone_device_free(phone); | 157 | iphone_device_free(phone); |
| 158 | return -1; | 158 | return -1; |
| 159 | } | 159 | } |
