diff options
Diffstat (limited to 'tools/idevicepair.c')
-rw-r--r-- | tools/idevicepair.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/idevicepair.c b/tools/idevicepair.c index dda02ec..94d3f04 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c | |||
@@ -41,7 +41,6 @@ | |||
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #include "common/userpref.h" | 43 | #include "common/userpref.h" |
44 | #include <libimobiledevice-glue/utils.h> | ||
45 | 44 | ||
46 | #include <libimobiledevice/libimobiledevice.h> | 45 | #include <libimobiledevice/libimobiledevice.h> |
47 | #include <libimobiledevice/lockdown.h> | 46 | #include <libimobiledevice/lockdown.h> |
@@ -104,7 +103,7 @@ static void pairing_cb(lockdownd_cu_pairing_cb_type_t cb_type, void *user_data, | |||
104 | printf("\n"); | 103 | printf("\n"); |
105 | } else if (cb_type == LOCKDOWN_CU_PAIRING_DEVICE_INFO) { | 104 | } else if (cb_type == LOCKDOWN_CU_PAIRING_DEVICE_INFO) { |
106 | printf("Device info:\n"); | 105 | printf("Device info:\n"); |
107 | plist_print_to_stream_with_indentation((plist_t)data_ptr, stdout, 2); | 106 | plist_write_to_stream((plist_t)data_ptr, stdout, PLIST_FORMAT_LIMD, PLIST_OPT_INDENT | PLIST_OPT_INDENT_BY(2)); |
108 | } else if (cb_type == LOCKDOWN_CU_PAIRING_ERROR) { | 107 | } else if (cb_type == LOCKDOWN_CU_PAIRING_ERROR) { |
109 | printf("ERROR: %s\n", (data_ptr) ? (char*)data_ptr : "(unknown)"); | 108 | printf("ERROR: %s\n", (data_ptr) ? (char*)data_ptr : "(unknown)"); |
110 | } | 109 | } |
@@ -257,7 +256,7 @@ int main(int argc, char **argv) | |||
257 | goto leave; | 256 | goto leave; |
258 | } | 257 | } |
259 | if (*optarg == '@') { | 258 | if (*optarg == '@') { |
260 | plist_read_from_filename(&host_info_plist, optarg+1); | 259 | plist_read_from_file(optarg+1, &host_info_plist, NULL); |
261 | if (!host_info_plist) { | 260 | if (!host_info_plist) { |
262 | fprintf(stderr, "ERROR: Could not read from file '%s'\n", optarg+1); | 261 | fprintf(stderr, "ERROR: Could not read from file '%s'\n", optarg+1); |
263 | result = EXIT_FAILURE; | 262 | result = EXIT_FAILURE; |