From 19fcf57f2a4f46b69fb9c8cdb0d8dde16889ff67 Mon Sep 17 00:00:00 2001 From: Martin Szulecki Date: Wed, 13 Jan 2010 16:51:22 +0100 Subject: Port to changes of libiphone 0.9.6 API --- src/iphoneinstaller.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/iphoneinstaller.c b/src/iphoneinstaller.c index d3e311c..8787a24 100644 --- a/src/iphoneinstaller.c +++ b/src/iphoneinstaller.c @@ -297,7 +297,6 @@ static void parse_opts(int argc, char **argv) break; case 'D': iphone_set_debug_level(1); - iphone_set_debug_mask(DBGMASK_ALL); break; default: print_usage(argc, argv); @@ -318,7 +317,7 @@ int main(int argc, char **argv) instproxy_client_t ipc = NULL; np_client_t np = NULL; afc_client_t afc = NULL; - int port = 0; + uint16_t port = 0; int res = 0; parse_opts(argc, argv); @@ -331,7 +330,7 @@ int main(int argc, char **argv) return -1; } - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { + if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) { fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); goto leave_cleanup; } @@ -923,7 +922,7 @@ run_again: remove_archive_mode = 1; free(options); options = NULL; - if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { + if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) { fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); goto leave_cleanup; } -- cgit v1.1-32-gdbae