summaryrefslogtreecommitdiffstats
path: root/src/iphoneinstaller.c
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-01-13 16:51:22 +0100
committerGravatar Martin Szulecki2010-01-13 16:51:22 +0100
commit19fcf57f2a4f46b69fb9c8cdb0d8dde16889ff67 (patch)
tree87c30a63a6e5a7d5edd1bd1bc8aa1c7024624add /src/iphoneinstaller.c
parente0cf27624accbcd49ff628919a2546685e3136d9 (diff)
downloadideviceinstaller-19fcf57f2a4f46b69fb9c8cdb0d8dde16889ff67.tar.gz
ideviceinstaller-19fcf57f2a4f46b69fb9c8cdb0d8dde16889ff67.tar.bz2
Port to changes of libiphone 0.9.6 API
Diffstat (limited to 'src/iphoneinstaller.c')
-rw-r--r--src/iphoneinstaller.c7
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)
297 break; 297 break;
298 case 'D': 298 case 'D':
299 iphone_set_debug_level(1); 299 iphone_set_debug_level(1);
300 iphone_set_debug_mask(DBGMASK_ALL);
301 break; 300 break;
302 default: 301 default:
303 print_usage(argc, argv); 302 print_usage(argc, argv);
@@ -318,7 +317,7 @@ int main(int argc, char **argv)
318 instproxy_client_t ipc = NULL; 317 instproxy_client_t ipc = NULL;
319 np_client_t np = NULL; 318 np_client_t np = NULL;
320 afc_client_t afc = NULL; 319 afc_client_t afc = NULL;
321 int port = 0; 320 uint16_t port = 0;
322 int res = 0; 321 int res = 0;
323 322
324 parse_opts(argc, argv); 323 parse_opts(argc, argv);
@@ -331,7 +330,7 @@ int main(int argc, char **argv)
331 return -1; 330 return -1;
332 } 331 }
333 332
334 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { 333 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) {
335 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); 334 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
336 goto leave_cleanup; 335 goto leave_cleanup;
337 } 336 }
@@ -923,7 +922,7 @@ run_again:
923 remove_archive_mode = 1; 922 remove_archive_mode = 1;
924 free(options); 923 free(options);
925 options = NULL; 924 options = NULL;
926 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { 925 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphoneinstaller")) {
927 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n"); 926 fprintf(stderr, "Could not connect to lockdownd. Exiting.\n");
928 goto leave_cleanup; 927 goto leave_cleanup;
929 } 928 }