diff options
Diffstat (limited to 'tools/iphonesyslog.c')
| -rw-r--r-- | tools/iphonesyslog.c | 5 |
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[]) | |||
| 49 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; | 49 | iphone_error_t ret = IPHONE_E_UNKNOWN_ERROR; |
| 50 | int i; | 50 | int i; |
| 51 | char uuid[41]; | 51 | char uuid[41]; |
| 52 | int port = 0; | 52 | uint16_t port = 0; |
| 53 | uuid[0] = 0; | 53 | uuid[0] = 0; |
| 54 | 54 | ||
| 55 | signal(SIGINT, clean_exit); | 55 | signal(SIGINT, clean_exit); |
| @@ -60,7 +60,6 @@ int main(int argc, char *argv[]) | |||
| 60 | /* parse cmdline args */ | 60 | /* parse cmdline args */ |
| 61 | for (i = 1; i < argc; i++) { | 61 | for (i = 1; i < argc; i++) { |
| 62 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 62 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
| 63 | iphone_set_debug_mask(DBGMASK_ALL); | ||
| 64 | iphone_set_debug_level(1); | 63 | iphone_set_debug_level(1); |
| 65 | continue; | 64 | continue; |
| 66 | } | 65 | } |
| @@ -99,7 +98,7 @@ int main(int argc, char *argv[]) | |||
| 99 | } | 98 | } |
| 100 | } | 99 | } |
| 101 | 100 | ||
| 102 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 101 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new_with_handshake(phone, &client, "iphonesyslog")) { |
| 103 | iphone_device_free(phone); | 102 | iphone_device_free(phone); |
| 104 | return -1; | 103 | return -1; |
| 105 | } | 104 | } |
