diff options
| author | 2015-01-28 01:27:59 +0100 | |
|---|---|---|
| committer | 2015-01-28 01:27:59 +0100 | |
| commit | 24ce2e27b47d3ad460680e02514f5bdbd4628724 (patch) | |
| tree | ff174ebb7deab82d1f9c031d147e47e01bf47d3a /tools | |
| parent | c9d8013c1a6d69ef8b6024166629413e481e185d (diff) | |
| download | libimobiledevice-24ce2e27b47d3ad460680e02514f5bdbd4628724.tar.gz libimobiledevice-24ce2e27b47d3ad460680e02514f5bdbd4628724.tar.bz2 | |
Remove trailing whitespace errors from all files
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/idevice_id.c | 8 | ||||
| -rw-r--r-- | tools/idevicebackup.c | 24 | ||||
| -rw-r--r-- | tools/idevicebackup2.c | 41 | ||||
| -rw-r--r-- | tools/idevicecrashreport.c | 6 | ||||
| -rw-r--r-- | tools/idevicedate.c | 8 | ||||
| -rw-r--r-- | tools/idevicedebugserverproxy.c | 6 | ||||
| -rw-r--r-- | tools/idevicediagnostics.c | 8 | ||||
| -rw-r--r-- | tools/ideviceenterrecovery.c | 8 | ||||
| -rw-r--r-- | tools/ideviceimagemounter.c | 8 | ||||
| -rw-r--r-- | tools/ideviceinfo.c | 10 | ||||
| -rw-r--r-- | tools/idevicename.c | 6 | ||||
| -rw-r--r-- | tools/idevicenotificationproxy.c | 2 | ||||
| -rw-r--r-- | tools/idevicepair.c | 8 | ||||
| -rw-r--r-- | tools/ideviceprovision.c | 10 | ||||
| -rw-r--r-- | tools/idevicescreenshot.c | 6 | ||||
| -rw-r--r-- | tools/idevicesyslog.c | 10 |
16 files changed, 83 insertions, 86 deletions
diff --git a/tools/idevice_id.c b/tools/idevice_id.c index ebcdf6f..9629f8b 100644 --- a/tools/idevice_id.c +++ b/tools/idevice_id.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -32,7 +32,7 @@ | |||
| 32 | static void print_usage(int argc, char **argv) | 32 | static void print_usage(int argc, char **argv) |
| 33 | { | 33 | { |
| 34 | char *name = NULL; | 34 | char *name = NULL; |
| 35 | 35 | ||
| 36 | name = strrchr(argv[0], '/'); | 36 | name = strrchr(argv[0], '/'); |
| 37 | printf("Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0])); | 37 | printf("Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0])); |
| 38 | printf("Prints device name or a list of attached devices.\n\n"); | 38 | printf("Prints device name or a list of attached devices.\n\n"); |
diff --git a/tools/idevicebackup.c b/tools/idevicebackup.c index 152721e..eefaa6f 100644 --- a/tools/idevicebackup.c +++ b/tools/idevicebackup.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #ifdef HAVE_CONFIG_H | 23 | #ifdef HAVE_CONFIG_H |
| @@ -511,13 +511,13 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 511 | 511 | ||
| 512 | char *version = NULL; | 512 | char *version = NULL; |
| 513 | node = plist_dict_get_item(metadata, "Version"); | 513 | node = plist_dict_get_item(metadata, "Version"); |
| 514 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { | 514 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { |
| 515 | plist_get_string_val(node, &version); | 515 | plist_get_string_val(node, &version); |
| 516 | } | 516 | } |
| 517 | 517 | ||
| 518 | char *destpath = NULL; | 518 | char *destpath = NULL; |
| 519 | node = plist_dict_get_item(metadata, "Path"); | 519 | node = plist_dict_get_item(metadata, "Path"); |
| 520 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { | 520 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { |
| 521 | plist_get_string_val(node, &destpath); | 521 | plist_get_string_val(node, &destpath); |
| 522 | } | 522 | } |
| 523 | 523 | ||
| @@ -529,7 +529,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 529 | 529 | ||
| 530 | char *domain = NULL; | 530 | char *domain = NULL; |
| 531 | node = plist_dict_get_item(metadata, "Domain"); | 531 | node = plist_dict_get_item(metadata, "Domain"); |
| 532 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { | 532 | if (node && (plist_get_node_type(node) == PLIST_STRING)) { |
| 533 | plist_get_string_val(node, &domain); | 533 | plist_get_string_val(node, &domain); |
| 534 | } | 534 | } |
| 535 | 535 | ||
| @@ -547,7 +547,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const | |||
| 547 | snprintf (p, 3, "%02x", (unsigned char)fnhash[i] ); | 547 | snprintf (p, 3, "%02x", (unsigned char)fnhash[i] ); |
| 548 | } | 548 | } |
| 549 | if (strcmp(fnamehash, hash)) { | 549 | if (strcmp(fnamehash, hash)) { |
| 550 | printf("\r\n"); | 550 | printf("\r\n"); |
| 551 | printf("WARNING: filename hash does not match for entry '%s'\n", hash); | 551 | printf("WARNING: filename hash does not match for entry '%s'\n", hash); |
| 552 | } | 552 | } |
| 553 | 553 | ||
| @@ -940,7 +940,7 @@ int main(int argc, char *argv[]) | |||
| 940 | case CMD_BACKUP: | 940 | case CMD_BACKUP: |
| 941 | printf("Starting backup...\n"); | 941 | printf("Starting backup...\n"); |
| 942 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ | 942 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ |
| 943 | /* TODO: verify battery on AC enough battery remaining */ | 943 | /* TODO: verify battery on AC enough battery remaining */ |
| 944 | 944 | ||
| 945 | /* read the last Manifest.plist */ | 945 | /* read the last Manifest.plist */ |
| 946 | if (!is_full_backup) { | 946 | if (!is_full_backup) { |
| @@ -1026,7 +1026,7 @@ int main(int argc, char *argv[]) | |||
| 1026 | sleep(2); | 1026 | sleep(2); |
| 1027 | goto files_out; | 1027 | goto files_out; |
| 1028 | } | 1028 | } |
| 1029 | 1029 | ||
| 1030 | node = plist_array_get_item(message, 0); | 1030 | node = plist_array_get_item(message, 0); |
| 1031 | 1031 | ||
| 1032 | /* get out if we don't get a DLSendFile */ | 1032 | /* get out if we don't get a DLSendFile */ |
| @@ -1287,7 +1287,7 @@ files_out: | |||
| 1287 | } | 1287 | } |
| 1288 | free(auth_sig); | 1288 | free(auth_sig); |
| 1289 | } else if (auth_ver) { | 1289 | } else if (auth_ver) { |
| 1290 | printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver); | 1290 | printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver); |
| 1291 | } | 1291 | } |
| 1292 | plist_from_bin(bin, (uint32_t)binsize, &backup_data); | 1292 | plist_from_bin(bin, (uint32_t)binsize, &backup_data); |
| 1293 | free(bin); | 1293 | free(bin); |
| @@ -1434,7 +1434,7 @@ files_out: | |||
| 1434 | file_status = DEVICE_LINK_FILE_STATUS_LAST_HUNK; | 1434 | file_status = DEVICE_LINK_FILE_STATUS_LAST_HUNK; |
| 1435 | else | 1435 | else |
| 1436 | file_status = DEVICE_LINK_FILE_STATUS_HUNK; | 1436 | file_status = DEVICE_LINK_FILE_STATUS_HUNK; |
| 1437 | 1437 | ||
| 1438 | plist_dict_remove_item(file_info, "DLFileOffsetKey"); | 1438 | plist_dict_remove_item(file_info, "DLFileOffsetKey"); |
| 1439 | plist_dict_set_item(file_info, "DLFileOffsetKey", plist_new_uint(file_offset)); | 1439 | plist_dict_set_item(file_info, "DLFileOffsetKey", plist_new_uint(file_offset)); |
| 1440 | 1440 | ||
| @@ -1469,7 +1469,7 @@ files_out: | |||
| 1469 | printf("DONE\n"); | 1469 | printf("DONE\n"); |
| 1470 | 1470 | ||
| 1471 | plist_free(send_file_node); | 1471 | plist_free(send_file_node); |
| 1472 | 1472 | ||
| 1473 | if (file_status == DEVICE_LINK_FILE_STATUS_NONE) | 1473 | if (file_status == DEVICE_LINK_FILE_STATUS_NONE) |
| 1474 | break; | 1474 | break; |
| 1475 | 1475 | ||
diff --git a/tools/idevicebackup2.c b/tools/idevicebackup2.c index abc0efa..ead4dba 100644 --- a/tools/idevicebackup2.c +++ b/tools/idevicebackup2.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| @@ -142,7 +142,6 @@ static void mobilebackup_afc_get_file_contents(afc_client_t afc, const char *fil | |||
| 142 | uint32_t bread = 0; | 142 | uint32_t bread = 0; |
| 143 | afc_file_read(afc, f, buf+done, 65536, &bread); | 143 | afc_file_read(afc, f, buf+done, 65536, &bread); |
| 144 | if (bread > 0) { | 144 | if (bread > 0) { |
| 145 | |||
| 146 | } else { | 145 | } else { |
| 147 | break; | 146 | break; |
| 148 | } | 147 | } |
| @@ -172,7 +171,7 @@ static int mkdir_with_parents(const char *dir, int mode) | |||
| 172 | if (__mkdir(dir, mode) == 0) { | 171 | if (__mkdir(dir, mode) == 0) { |
| 173 | return 0; | 172 | return 0; |
| 174 | } else { | 173 | } else { |
| 175 | if (errno == EEXIST) return 0; | 174 | if (errno == EEXIST) return 0; |
| 176 | } | 175 | } |
| 177 | int res; | 176 | int res; |
| 178 | char *parent = strdup(dir); | 177 | char *parent = strdup(dir); |
| @@ -180,7 +179,7 @@ static int mkdir_with_parents(const char *dir, int mode) | |||
| 180 | if (parentdir) { | 179 | if (parentdir) { |
| 181 | res = mkdir_with_parents(parentdir, mode); | 180 | res = mkdir_with_parents(parentdir, mode); |
| 182 | } else { | 181 | } else { |
| 183 | res = -1; | 182 | res = -1; |
| 184 | } | 183 | } |
| 185 | free(parent); | 184 | free(parent); |
| 186 | if (res == 0) { | 185 | if (res == 0) { |
| @@ -590,7 +589,7 @@ leave: | |||
| 590 | } | 589 | } |
| 591 | char *errdesc = strerror(errcode); | 590 | char *errdesc = strerror(errcode); |
| 592 | mb2_multi_status_add_file_error(*errplist, path, errno_to_device_error(errcode), errdesc); | 591 | mb2_multi_status_add_file_error(*errplist, path, errno_to_device_error(errcode), errdesc); |
| 593 | 592 | ||
| 594 | length = strlen(errdesc); | 593 | length = strlen(errdesc); |
| 595 | nlen = htobe32(length+1); | 594 | nlen = htobe32(length+1); |
| 596 | memcpy(buf, &nlen, 4); | 595 | memcpy(buf, &nlen, 4); |
| @@ -616,7 +615,7 @@ leave_proto_err: | |||
| 616 | 615 | ||
| 617 | static void mb2_handle_send_files(mobilebackup2_client_t mobilebackup2, plist_t message, const char *backup_dir) | 616 | static void mb2_handle_send_files(mobilebackup2_client_t mobilebackup2, plist_t message, const char *backup_dir) |
| 618 | { | 617 | { |
| 619 | uint32_t cnt; | 618 | uint32_t cnt; |
| 620 | uint32_t i = 0; | 619 | uint32_t i = 0; |
| 621 | uint32_t sent; | 620 | uint32_t sent; |
| 622 | plist_t errplist = NULL; | 621 | plist_t errplist = NULL; |
| @@ -1077,15 +1076,15 @@ static void get_hidden_input(char *buf, int maxlen) | |||
| 1077 | static char* ask_for_password(const char* msg, int type_again) | 1076 | static char* ask_for_password(const char* msg, int type_again) |
| 1078 | { | 1077 | { |
| 1079 | char pwbuf[256]; | 1078 | char pwbuf[256]; |
| 1080 | 1079 | ||
| 1081 | fprintf(stderr, "%s: ", msg); | 1080 | fprintf(stderr, "%s: ", msg); |
| 1082 | fflush(stderr); | 1081 | fflush(stderr); |
| 1083 | get_hidden_input(pwbuf, 256); | 1082 | get_hidden_input(pwbuf, 256); |
| 1084 | fputc('\n', stderr); | 1083 | fputc('\n', stderr); |
| 1085 | 1084 | ||
| 1086 | if (type_again) { | 1085 | if (type_again) { |
| 1087 | char pwrep[256]; | 1086 | char pwrep[256]; |
| 1088 | 1087 | ||
| 1089 | fprintf(stderr, "%s (repeat): ", msg); | 1088 | fprintf(stderr, "%s (repeat): ", msg); |
| 1090 | fflush(stderr); | 1089 | fflush(stderr); |
| 1091 | get_hidden_input(pwrep, 256); | 1090 | get_hidden_input(pwrep, 256); |
| @@ -1168,7 +1167,7 @@ int main(int argc, char *argv[]) | |||
| 1168 | /* we need to exit cleanly on running backups and restores or we cause havok */ | 1167 | /* we need to exit cleanly on running backups and restores or we cause havok */ |
| 1169 | signal(SIGINT, clean_exit); | 1168 | signal(SIGINT, clean_exit); |
| 1170 | signal(SIGTERM, clean_exit); | 1169 | signal(SIGTERM, clean_exit); |
| 1171 | #ifndef WIN32 | 1170 | #ifndef WIN32 |
| 1172 | signal(SIGQUIT, clean_exit); | 1171 | signal(SIGQUIT, clean_exit); |
| 1173 | signal(SIGPIPE, SIG_IGN); | 1172 | signal(SIGPIPE, SIG_IGN); |
| 1174 | #endif | 1173 | #endif |
| @@ -1274,7 +1273,7 @@ int main(int argc, char *argv[]) | |||
| 1274 | if (!argv[i]) { | 1273 | if (!argv[i]) { |
| 1275 | printf("No argument given for encryption command; requires either 'on' or 'off'.\n"); | 1274 | printf("No argument given for encryption command; requires either 'on' or 'off'.\n"); |
| 1276 | print_usage(argc, argv); | 1275 | print_usage(argc, argv); |
| 1277 | return -1; | 1276 | return -1; |
| 1278 | } | 1277 | } |
| 1279 | if (!strcmp(argv[i], "on")) { | 1278 | if (!strcmp(argv[i], "on")) { |
| 1280 | cmd_flags |= CMD_FLAG_ENCRYPTION_ENABLE; | 1279 | cmd_flags |= CMD_FLAG_ENCRYPTION_ENABLE; |
| @@ -1291,7 +1290,7 @@ int main(int argc, char *argv[]) | |||
| 1291 | if (backup_password) { | 1290 | if (backup_password) { |
| 1292 | free(backup_password); | 1291 | free(backup_password); |
| 1293 | backup_password = NULL; | 1292 | backup_password = NULL; |
| 1294 | } | 1293 | } |
| 1295 | i++; | 1294 | i++; |
| 1296 | if (argv[i]) { | 1295 | if (argv[i]) { |
| 1297 | if (cmd_flags & CMD_FLAG_ENCRYPTION_ENABLE) { | 1296 | if (cmd_flags & CMD_FLAG_ENCRYPTION_ENABLE) { |
| @@ -1304,7 +1303,7 @@ int main(int argc, char *argv[]) | |||
| 1304 | } | 1303 | } |
| 1305 | else if (!strcmp(argv[i], "changepw")) { | 1304 | else if (!strcmp(argv[i], "changepw")) { |
| 1306 | cmd = CMD_CHANGEPW; | 1305 | cmd = CMD_CHANGEPW; |
| 1307 | cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW; | 1306 | cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW; |
| 1308 | // check if passwords were given on command line | 1307 | // check if passwords were given on command line |
| 1309 | if (newpw) { | 1308 | if (newpw) { |
| 1310 | free(newpw); | 1309 | free(newpw); |
| @@ -1313,7 +1312,7 @@ int main(int argc, char *argv[]) | |||
| 1313 | if (backup_password) { | 1312 | if (backup_password) { |
| 1314 | free(backup_password); | 1313 | free(backup_password); |
| 1315 | backup_password = NULL; | 1314 | backup_password = NULL; |
| 1316 | } | 1315 | } |
| 1317 | i++; | 1316 | i++; |
| 1318 | if (argv[i]) { | 1317 | if (argv[i]) { |
| 1319 | backup_password = strdup(argv[i]); | 1318 | backup_password = strdup(argv[i]); |
| @@ -1382,7 +1381,7 @@ int main(int argc, char *argv[]) | |||
| 1382 | } | 1381 | } |
| 1383 | 1382 | ||
| 1384 | uint8_t is_encrypted = 0; | 1383 | uint8_t is_encrypted = 0; |
| 1385 | char *info_path = NULL; | 1384 | char *info_path = NULL; |
| 1386 | if (cmd == CMD_CHANGEPW) { | 1385 | if (cmd == CMD_CHANGEPW) { |
| 1387 | if (!interactive_mode && !backup_password && !newpw) { | 1386 | if (!interactive_mode && !backup_password && !newpw) { |
| 1388 | idevice_free(device); | 1387 | idevice_free(device); |
| @@ -1609,7 +1608,7 @@ checkpoint: | |||
| 1609 | } | 1608 | } |
| 1610 | 1609 | ||
| 1611 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ | 1610 | /* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */ |
| 1612 | /* TODO: verify battery on AC enough battery remaining */ | 1611 | /* TODO: verify battery on AC enough battery remaining */ |
| 1613 | 1612 | ||
| 1614 | /* re-create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */ | 1613 | /* re-create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */ |
| 1615 | if (info_plist) { | 1614 | if (info_plist) { |
| @@ -1776,7 +1775,7 @@ checkpoint: | |||
| 1776 | if (newpw) { | 1775 | if (newpw) { |
| 1777 | free(newpw); | 1776 | free(newpw); |
| 1778 | newpw = NULL; | 1777 | newpw = NULL; |
| 1779 | } | 1778 | } |
| 1780 | if (backup_password) { | 1779 | if (backup_password) { |
| 1781 | free(backup_password); | 1780 | free(backup_password); |
| 1782 | backup_password = NULL; | 1781 | backup_password = NULL; |
| @@ -2057,7 +2056,6 @@ checkpoint: | |||
| 2057 | printf("%s", str); | 2056 | printf("%s", str); |
| 2058 | free(str); | 2057 | free(str); |
| 2059 | } | 2058 | } |
| 2060 | |||
| 2061 | break; | 2059 | break; |
| 2062 | } | 2060 | } |
| 2063 | 2061 | ||
| @@ -2134,7 +2132,7 @@ files_out: | |||
| 2134 | } | 2132 | } |
| 2135 | } else if (cmd_flags & CMD_FLAG_ENCRYPTION_DISABLE) { | 2133 | } else if (cmd_flags & CMD_FLAG_ENCRYPTION_DISABLE) { |
| 2136 | if (operation_ok) { | 2134 | if (operation_ok) { |
| 2137 | PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n"); | 2135 | PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n"); |
| 2138 | } else { | 2136 | } else { |
| 2139 | PRINT_VERBOSE(1, "Could not disable backup encryption.\n"); | 2137 | PRINT_VERBOSE(1, "Could not disable backup encryption.\n"); |
| 2140 | } | 2138 | } |
| @@ -2154,7 +2152,6 @@ files_out: | |||
| 2154 | } else { | 2152 | } else { |
| 2155 | PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code); | 2153 | PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code); |
| 2156 | } | 2154 | } |
| 2157 | |||
| 2158 | break; | 2155 | break; |
| 2159 | case CMD_INFO: | 2156 | case CMD_INFO: |
| 2160 | case CMD_LIST: | 2157 | case CMD_LIST: |
diff --git a/tools/idevicecrashreport.c b/tools/idevicecrashreport.c index b6384a9..b74a660 100644 --- a/tools/idevicecrashreport.c +++ b/tools/idevicecrashreport.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
diff --git a/tools/idevicedate.c b/tools/idevicedate.c index 27906f3..f6bed7a 100644 --- a/tools/idevicedate.c +++ b/tools/idevicedate.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -39,7 +39,7 @@ | |||
| 39 | static void print_usage(int argc, char **argv) | 39 | static void print_usage(int argc, char **argv) |
| 40 | { | 40 | { |
| 41 | char *name = NULL; | 41 | char *name = NULL; |
| 42 | 42 | ||
| 43 | name = strrchr(argv[0], '/'); | 43 | name = strrchr(argv[0], '/'); |
| 44 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 44 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 45 | printf("Display the current date or set it on a device.\n\n"); | 45 | printf("Display the current date or set it on a device.\n\n"); |
diff --git a/tools/idevicedebugserverproxy.c b/tools/idevicedebugserverproxy.c index 75061fb..28bba5e 100644 --- a/tools/idevicedebugserverproxy.c +++ b/tools/idevicedebugserverproxy.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicediagnostics.c b/tools/idevicediagnostics.c index 309aa95..992bc0a 100644 --- a/tools/idevicediagnostics.c +++ b/tools/idevicediagnostics.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -166,7 +166,7 @@ int main(int argc, char **argv) | |||
| 166 | 166 | ||
| 167 | if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) { | 167 | if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) { |
| 168 | if (udid) { | 168 | if (udid) { |
| 169 | printf("No device found with udid %s, is it plugged in?\n", udid); | 169 | printf("No device found with udid %s, is it plugged in?\n", udid); |
| 170 | } else { | 170 | } else { |
| 171 | printf("No device found, is it plugged in?\n"); | 171 | printf("No device found, is it plugged in?\n"); |
| 172 | } | 172 | } |
diff --git a/tools/ideviceenterrecovery.c b/tools/ideviceenterrecovery.c index 3048176..3069be8 100644 --- a/tools/ideviceenterrecovery.c +++ b/tools/ideviceenterrecovery.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -30,7 +30,7 @@ | |||
| 30 | static void print_usage(int argc, char **argv) | 30 | static void print_usage(int argc, char **argv) |
| 31 | { | 31 | { |
| 32 | char *name = NULL; | 32 | char *name = NULL; |
| 33 | 33 | ||
| 34 | name = strrchr(argv[0], '/'); | 34 | name = strrchr(argv[0], '/'); |
| 35 | printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0])); | 35 | printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0])); |
| 36 | printf("Makes a device with the supplied 40-digit UDID enter recovery mode immediately.\n\n"); | 36 | printf("Makes a device with the supplied 40-digit UDID enter recovery mode immediately.\n\n"); |
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c index 27f699f..a0f4b83 100644 --- a/tools/ideviceimagemounter.c +++ b/tools/ideviceimagemounter.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
| @@ -205,7 +205,7 @@ int main(int argc, char **argv) | |||
| 205 | if (mobile_image_mounter_new(device, service, &mim) != MOBILE_IMAGE_MOUNTER_E_SUCCESS) { | 205 | if (mobile_image_mounter_new(device, service, &mim) != MOBILE_IMAGE_MOUNTER_E_SUCCESS) { |
| 206 | printf("ERROR: Could not connect to mobile_image_mounter!\n"); | 206 | printf("ERROR: Could not connect to mobile_image_mounter!\n"); |
| 207 | goto leave; | 207 | goto leave; |
| 208 | } | 208 | } |
| 209 | 209 | ||
| 210 | if (service) { | 210 | if (service) { |
| 211 | lockdownd_service_descriptor_free(service); | 211 | lockdownd_service_descriptor_free(service); |
diff --git a/tools/ideviceinfo.c b/tools/ideviceinfo.c index 41881e6..641a036 100644 --- a/tools/ideviceinfo.c +++ b/tools/ideviceinfo.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -35,7 +35,7 @@ static const char *domains[] = { | |||
| 35 | "com.apple.disk_usage", | 35 | "com.apple.disk_usage", |
| 36 | "com.apple.disk_usage.factory", | 36 | "com.apple.disk_usage.factory", |
| 37 | "com.apple.mobile.battery", | 37 | "com.apple.mobile.battery", |
| 38 | /* FIXME: For some reason lockdownd segfaults on this, works sometimes though | 38 | /* FIXME: For some reason lockdownd segfaults on this, works sometimes though |
| 39 | "com.apple.mobile.debug",. */ | 39 | "com.apple.mobile.debug",. */ |
| 40 | "com.apple.iqagent", | 40 | "com.apple.iqagent", |
| 41 | "com.apple.purplebuddy", | 41 | "com.apple.purplebuddy", |
| @@ -81,7 +81,7 @@ static void print_usage(int argc, char **argv) | |||
| 81 | { | 81 | { |
| 82 | int i = 0; | 82 | int i = 0; |
| 83 | char *name = NULL; | 83 | char *name = NULL; |
| 84 | 84 | ||
| 85 | name = strrchr(argv[0], '/'); | 85 | name = strrchr(argv[0], '/'); |
| 86 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 86 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 87 | printf("Show information about a connected device.\n\n"); | 87 | printf("Show information about a connected device.\n\n"); |
diff --git a/tools/idevicename.c b/tools/idevicename.c index 4214600..b5b9e62 100644 --- a/tools/idevicename.c +++ b/tools/idevicename.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicenotificationproxy.c b/tools/idevicenotificationproxy.c index 24976b9..ff18eca 100644 --- a/tools/idevicenotificationproxy.c +++ b/tools/idevicenotificationproxy.c | |||
| @@ -16,7 +16,7 @@ | |||
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicepair.c b/tools/idevicepair.c index 5604fc3..237b168 100644 --- a/tools/idevicepair.c +++ b/tools/idevicepair.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | 22 | ||
| 23 | #include <stdio.h> | 23 | #include <stdio.h> |
| @@ -55,7 +55,7 @@ static void print_error_message(lockdownd_error_t err) | |||
| 55 | static void print_usage(int argc, char **argv) | 55 | static void print_usage(int argc, char **argv) |
| 56 | { | 56 | { |
| 57 | char *name = NULL; | 57 | char *name = NULL; |
| 58 | 58 | ||
| 59 | name = strrchr(argv[0], '/'); | 59 | name = strrchr(argv[0], '/'); |
| 60 | printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0])); | 60 | printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0])); |
| 61 | printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0])); | 61 | printf("Usage: %s [OPTIONS] COMMAND\n\n", (name ? name + 1: argv[0])); |
diff --git a/tools/ideviceprovision.c b/tools/ideviceprovision.c index b9f2a02..9517af8 100644 --- a/tools/ideviceprovision.c +++ b/tools/ideviceprovision.c | |||
| @@ -9,15 +9,15 @@ | |||
| 9 | * modify it under the terms of the GNU Lesser General Public | 9 | * modify it under the terms of the GNU Lesser General Public |
| 10 | * License as published by the Free Software Foundation; either | 10 | * License as published by the Free Software Foundation; either |
| 11 | * version 2.1 of the License, or (at your option) any later version. | 11 | * version 2.1 of the License, or (at your option) any later version. |
| 12 | * | 12 | * |
| 13 | * This library is distributed in the hope that it will be useful, | 13 | * This library is distributed in the hope that it will be useful, |
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 16 | * Lesser General Public License for more details. | 16 | * Lesser General Public License for more details. |
| 17 | * | 17 | * |
| 18 | * You should have received a copy of the GNU Lesser General Public | 18 | * You should have received a copy of the GNU Lesser General Public |
| 19 | * License along with this library; if not, write to the Free Software | 19 | * License along with this library; if not, write to the Free Software |
| 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 20 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 21 | */ | 21 | */ |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| @@ -37,7 +37,7 @@ | |||
| 37 | static void print_usage(int argc, char **argv) | 37 | static void print_usage(int argc, char **argv) |
| 38 | { | 38 | { |
| 39 | char *name = NULL; | 39 | char *name = NULL; |
| 40 | 40 | ||
| 41 | name = strrchr(argv[0], '/'); | 41 | name = strrchr(argv[0], '/'); |
| 42 | printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); | 42 | printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0])); |
| 43 | printf("Manage provisioning profiles on a device.\n\n"); | 43 | printf("Manage provisioning profiles on a device.\n\n"); |
| @@ -411,7 +411,7 @@ int main(int argc, char *argv[]) | |||
| 411 | case OP_INSTALL: | 411 | case OP_INSTALL: |
| 412 | { | 412 | { |
| 413 | unsigned char* profile_data = NULL; | 413 | unsigned char* profile_data = NULL; |
| 414 | unsigned int profile_size = 0; | 414 | unsigned int profile_size = 0; |
| 415 | if (profile_read_from_file(param, &profile_data, &profile_size) != 0) { | 415 | if (profile_read_from_file(param, &profile_data, &profile_size) != 0) { |
| 416 | break; | 416 | break; |
| 417 | } | 417 | } |
diff --git a/tools/idevicescreenshot.c b/tools/idevicescreenshot.c index b01cafd..bff502c 100644 --- a/tools/idevicescreenshot.c +++ b/tools/idevicescreenshot.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/tools/idevicesyslog.c b/tools/idevicesyslog.c index 23f74ab..4bc4b45 100644 --- a/tools/idevicesyslog.c +++ b/tools/idevicesyslog.c | |||
| @@ -8,15 +8,15 @@ | |||
| 8 | * modify it under the terms of the GNU Lesser General Public | 8 | * modify it under the terms of the GNU Lesser General Public |
| 9 | * License as published by the Free Software Foundation; either | 9 | * License as published by the Free Software Foundation; either |
| 10 | * version 2.1 of the License, or (at your option) any later version. | 10 | * version 2.1 of the License, or (at your option) any later version. |
| 11 | * | 11 | * |
| 12 | * This library is distributed in the hope that it will be useful, | 12 | * This library is distributed in the hope that it will be useful, |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | * Lesser General Public License for more details. | 15 | * Lesser General Public License for more details. |
| 16 | * | 16 | * |
| 17 | * You should have received a copy of the GNU Lesser General Public | 17 | * You should have received a copy of the GNU Lesser General Public |
| 18 | * License along with this library; if not, write to the Free Software | 18 | * License along with this library; if not, write to the Free Software |
| 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 20 | */ | 20 | */ |
| 21 | 21 | ||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| @@ -187,7 +187,7 @@ int main(int argc, char *argv[]) | |||
| 187 | } | 187 | } |
| 188 | idevice_event_unsubscribe(); | 188 | idevice_event_unsubscribe(); |
| 189 | stop_logging(); | 189 | stop_logging(); |
| 190 | 190 | ||
| 191 | if (udid) { | 191 | if (udid) { |
| 192 | free(udid); | 192 | free(udid); |
| 193 | } | 193 | } |
| @@ -198,7 +198,7 @@ int main(int argc, char *argv[]) | |||
| 198 | void print_usage(int argc, char **argv) | 198 | void print_usage(int argc, char **argv) |
| 199 | { | 199 | { |
| 200 | char *name = NULL; | 200 | char *name = NULL; |
| 201 | 201 | ||
| 202 | name = strrchr(argv[0], '/'); | 202 | name = strrchr(argv[0], '/'); |
| 203 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); | 203 | printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0])); |
| 204 | printf("Relay syslog of a connected device.\n\n"); | 204 | printf("Relay syslog of a connected device.\n\n"); |
