diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/iphone_id.c | 2 | ||||
| -rw-r--r-- | tools/iphoneinfo.c | 5 | ||||
| -rw-r--r-- | tools/iphonesyslog.c | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/tools/iphone_id.c b/tools/iphone_id.c index 80f22e1..a293469 100644 --- a/tools/iphone_id.c +++ b/tools/iphone_id.c | |||
| @@ -70,7 +70,7 @@ int main(int argc, char **argv) | |||
| 70 | return -2; | 70 | return -2; |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 73 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphone_id")) { |
| 74 | iphone_device_free(phone); | 74 | iphone_device_free(phone); |
| 75 | fprintf(stderr, "ERROR: Connecting to device failed!\n"); | 75 | fprintf(stderr, "ERROR: Connecting to device failed!\n"); |
| 76 | return -2; | 76 | return -2; |
diff --git a/tools/iphoneinfo.c b/tools/iphoneinfo.c index e0d7693..b5344be 100644 --- a/tools/iphoneinfo.c +++ b/tools/iphoneinfo.c | |||
| @@ -136,7 +136,7 @@ int main(int argc, char *argv[]) | |||
| 136 | } | 136 | } |
| 137 | } | 137 | } |
| 138 | 138 | ||
| 139 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 139 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphoneinfo")) { |
| 140 | iphone_device_free(phone); | 140 | iphone_device_free(phone); |
| 141 | return -1; | 141 | return -1; |
| 142 | } | 142 | } |
| @@ -278,13 +278,10 @@ void plist_children_to_string(plist_t node) | |||
| 278 | plist_dict_next_item(node, it, &key, &subnode); | 278 | plist_dict_next_item(node, it, &key, &subnode); |
| 279 | while (subnode) | 279 | while (subnode) |
| 280 | { | 280 | { |
| 281 | subnode = NULL; | ||
| 282 | |||
| 283 | printf("%s: ", key); | 281 | printf("%s: ", key); |
| 284 | free(key); | 282 | free(key); |
| 285 | key = NULL; | 283 | key = NULL; |
| 286 | plist_node_to_string(subnode); | 284 | plist_node_to_string(subnode); |
| 287 | |||
| 288 | plist_dict_next_item(node, it, &key, &subnode); | 285 | plist_dict_next_item(node, it, &key, &subnode); |
| 289 | } | 286 | } |
| 290 | free(it); | 287 | free(it); |
diff --git a/tools/iphonesyslog.c b/tools/iphonesyslog.c index 8fa3b04..5d4f564 100644 --- a/tools/iphonesyslog.c +++ b/tools/iphonesyslog.c | |||
| @@ -99,7 +99,7 @@ int main(int argc, char *argv[]) | |||
| 99 | } | 99 | } |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client)) { | 102 | if (LOCKDOWN_E_SUCCESS != lockdownd_client_new(phone, &client, "iphonesyslog")) { |
| 103 | iphone_device_free(phone); | 103 | iphone_device_free(phone); |
| 104 | return -1; | 104 | return -1; |
| 105 | } | 105 | } |
