summaryrefslogtreecommitdiffstats
path: root/dev/afccheck.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev/afccheck.c')
-rw-r--r--dev/afccheck.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/dev/afccheck.c b/dev/afccheck.c
index 88935a0..569acf1 100644
--- a/dev/afccheck.c
+++ b/dev/afccheck.c
@@ -93,15 +93,13 @@ int main(int argc, char *argv[])
93 lockdownd_client_t client = NULL; 93 lockdownd_client_t client = NULL;
94 iphone_device_t phone = NULL; 94 iphone_device_t phone = NULL;
95 GError *err; 95 GError *err;
96 int port = 0; 96 uint16_t port = 0;
97 afc_client_t afc = NULL; 97 afc_client_t afc = NULL;
98 98
99 if (argc > 1 && !strcasecmp(argv[1], "--debug")) { 99 if (argc > 1 && !strcasecmp(argv[1], "--debug")) {
100 iphone_set_debug_level(1); 100 iphone_set_debug_level(1);
101 iphone_set_debug_mask(DBGMASK_ALL);
102 } else { 101 } else {
103 iphone_set_debug_level(0); 102 iphone_set_debug_level(0);
104 iphone_set_debug_mask(DBGMASK_NONE);
105 } 103 }
106 104
107 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) { 105 if (IPHONE_E_SUCCESS != iphone_device_new(&phone, NULL)) {
@@ -109,7 +107,7 @@ int main(int argc, char *argv[])
109 return 1; 107 return 1;
110 } 108 }
111 109
112 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { 110 if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "afccheck")) {
113 iphone_device_free(phone); 111 iphone_device_free(phone);
114 return 1; 112 return 1;
115 } 113 }