summaryrefslogtreecommitdiffstats
path: root/tools/iphonesyslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/iphonesyslog.c')
-rw-r--r--tools/iphonesyslog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/iphonesyslog.c b/tools/iphonesyslog.c
index 8fa3b04..017956e 100644
--- a/tools/iphonesyslog.c
+++ b/tools/iphonesyslog.c
@@ -49,7 +49,7 @@ int main(int argc, char *argv[])
iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR;
int i;
char uuid[41];
- int port = 0;
+ uint16_t port = 0;
uuid[0] = 0;
signal(SIGINT, clean_exit);
@@ -60,7 +60,6 @@ int main(int argc, char *argv[])
/* parse cmdline args */
for (i = 1; i < argc; i++) {
if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) {
- iphone_set_debug_mask(DBGMASK_ALL);
iphone_set_debug_level(1);
continue;
}
@@ -99,7 +98,7 @@ int main(int argc, char *argv[])
}
}
- if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) {
+ if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphonesyslog")) {
iphone_device_free(phone);
return -1;
}