diff options
author | Martin Szulecki | 2010-01-13 16:51:22 +0100 |
---|---|---|
committer | Martin Szulecki | 2010-01-13 16:51:22 +0100 |
commit | 19fcf57f2a4f46b69fb9c8cdb0d8dde16889ff67 (patch) | |
tree | 87c30a63a6e5a7d5edd1bd1bc8aa1c7024624add /src | |
parent | e0cf27624accbcd49ff628919a2546685e3136d9 (diff) | |
download | ideviceinstaller-19fcf57f2a4f46b69fb9c8cdb0d8dde16889ff67.tar.gz ideviceinstaller-19fcf57f2a4f46b69fb9c8cdb0d8dde16889ff67.tar.bz2 |
Port to changes of libiphone 0.9.6 API
Diffstat (limited to 'src')
-rw-r--r-- | src/iphoneinstaller.c | 7 |
1 files 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; } |