diff options
| author | 2009-06-21 23:05:23 +0200 | |
|---|---|---|
| committer | 2009-06-29 19:31:01 -0700 | |
| commit | 5b99c2fc482bc5449c14b0faa969496e4c875787 (patch) | |
| tree | 24d2698ba1b06e9a7ee30aa87203eda774ccfd5c | |
| parent | 4f47cf301238755327f3990d98fcd4c8e765612b (diff) | |
| download | libimobiledevice-5b99c2fc482bc5449c14b0faa969496e4c875787.tar.gz libimobiledevice-5b99c2fc482bc5449c14b0faa969496e4c875787.tar.bz2 | |
Silence warning and also dump iTunes format support information
| -rw-r--r-- | dev/iphoneinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/dev/iphoneinfo.c b/dev/iphoneinfo.c index c28eb9e..cee8dff 100644 --- a/dev/iphoneinfo.c +++ b/dev/iphoneinfo.c | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <string.h> | 23 | #include <string.h> |
| 24 | #include <errno.h> | 24 | #include <errno.h> |
| 25 | #include <stdlib.h> | ||
| 25 | 26 | ||
| 26 | #include <libiphone/libiphone.h> | 27 | #include <libiphone/libiphone.h> |
| 27 | 28 | ||
| @@ -43,6 +44,7 @@ int main(int argc, char *argv[]) | |||
| 43 | for (i = 1; i < argc; i++) { | 44 | for (i = 1; i < argc; i++) { |
| 44 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { | 45 | if (!strcmp(argv[i], "-d") || !strcmp(argv[i], "--debug")) { |
| 45 | iphone_set_debug_mask(DBGMASK_ALL); | 46 | iphone_set_debug_mask(DBGMASK_ALL); |
| 47 | iphone_set_debug(1); | ||
| 46 | continue; | 48 | continue; |
| 47 | } | 49 | } |
| 48 | else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) { | 50 | else if (!strcmp(argv[i], "-u") || !strcmp(argv[i], "--uuid")) { |
| @@ -98,6 +100,7 @@ int main(int argc, char *argv[]) | |||
| 98 | print_lckd_request_info(control, "com.apple.mobile.sync_data_class", "GetValue", NULL); | 100 | print_lckd_request_info(control, "com.apple.mobile.sync_data_class", "GetValue", NULL); |
| 99 | print_lckd_request_info(control, "com.apple.iTunes", "GetValue", NULL); | 101 | print_lckd_request_info(control, "com.apple.iTunes", "GetValue", NULL); |
| 100 | print_lckd_request_info(control, "com.apple.mobile.iTunes.store", "GetValue", NULL); | 102 | print_lckd_request_info(control, "com.apple.mobile.iTunes.store", "GetValue", NULL); |
| 103 | print_lckd_request_info(control, "com.apple.mobile.iTunes", "GetValue", NULL); | ||
| 101 | 104 | ||
| 102 | iphone_lckd_free_client(control); | 105 | iphone_lckd_free_client(control); |
| 103 | iphone_free_device(phone); | 106 | iphone_free_device(phone); |
