summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/idevice_id.c8
-rw-r--r--tools/idevicebackup.c24
-rw-r--r--tools/idevicebackup2.c41
-rw-r--r--tools/idevicecrashreport.c6
-rw-r--r--tools/idevicedate.c8
-rw-r--r--tools/idevicedebugserverproxy.c6
-rw-r--r--tools/idevicediagnostics.c8
-rw-r--r--tools/ideviceenterrecovery.c8
-rw-r--r--tools/ideviceimagemounter.c8
-rw-r--r--tools/ideviceinfo.c10
-rw-r--r--tools/idevicename.c6
-rw-r--r--tools/idevicenotificationproxy.c2
-rw-r--r--tools/idevicepair.c8
-rw-r--r--tools/ideviceprovision.c10
-rw-r--r--tools/idevicescreenshot.c6
-rw-r--r--tools/idevicesyslog.c10
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -32,7 +32,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] [UDID]\n", (name ? name + 1: argv[0]));
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifdef HAVE_CONFIG_H
@@ -511,13 +511,13 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const
char *version = NULL;
node = plist_dict_get_item(metadata, "Version");
- if (node && (plist_get_node_type(node) == PLIST_STRING)) {
+ if (node && (plist_get_node_type(node) == PLIST_STRING)) {
plist_get_string_val(node, &version);
}
char *destpath = NULL;
node = plist_dict_get_item(metadata, "Path");
- if (node && (plist_get_node_type(node) == PLIST_STRING)) {
+ if (node && (plist_get_node_type(node) == PLIST_STRING)) {
plist_get_string_val(node, &destpath);
}
@@ -529,7 +529,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const
char *domain = NULL;
node = plist_dict_get_item(metadata, "Domain");
- if (node && (plist_get_node_type(node) == PLIST_STRING)) {
+ if (node && (plist_get_node_type(node) == PLIST_STRING)) {
plist_get_string_val(node, &domain);
}
@@ -547,7 +547,7 @@ static int mobilebackup_check_file_integrity(const char *backup_directory, const
snprintf (p, 3, "%02x", (unsigned char)fnhash[i] );
}
if (strcmp(fnamehash, hash)) {
- printf("\r\n");
+ printf("\r\n");
printf("WARNING: filename hash does not match for entry '%s'\n", hash);
}
@@ -940,7 +940,7 @@ int main(int argc, char *argv[])
case CMD_BACKUP:
printf("Starting backup...\n");
/* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */
- /* TODO: verify battery on AC enough battery remaining */
+ /* TODO: verify battery on AC enough battery remaining */
/* read the last Manifest.plist */
if (!is_full_backup) {
@@ -1026,7 +1026,7 @@ int main(int argc, char *argv[])
sleep(2);
goto files_out;
}
-
+
node = plist_array_get_item(message, 0);
/* get out if we don't get a DLSendFile */
@@ -1287,7 +1287,7 @@ files_out:
}
free(auth_sig);
} else if (auth_ver) {
- printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver);
+ printf("Unknown AuthVersion '%s', cannot verify AuthSignature\n", auth_ver);
}
plist_from_bin(bin, (uint32_t)binsize, &backup_data);
free(bin);
@@ -1434,7 +1434,7 @@ files_out:
file_status = DEVICE_LINK_FILE_STATUS_LAST_HUNK;
else
file_status = DEVICE_LINK_FILE_STATUS_HUNK;
-
+
plist_dict_remove_item(file_info, "DLFileOffsetKey");
plist_dict_set_item(file_info, "DLFileOffsetKey", plist_new_uint(file_offset));
@@ -1469,7 +1469,7 @@ files_out:
printf("DONE\n");
plist_free(send_file_node);
-
+
if (file_status == DEVICE_LINK_FILE_STATUS_NONE)
break;
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -142,7 +142,6 @@ static void mobilebackup_afc_get_file_contents(afc_client_t afc, const char *fil
uint32_t bread = 0;
afc_file_read(afc, f, buf+done, 65536, &bread);
if (bread > 0) {
-
} else {
break;
}
@@ -172,7 +171,7 @@ static int mkdir_with_parents(const char *dir, int mode)
if (__mkdir(dir, mode) == 0) {
return 0;
} else {
- if (errno == EEXIST) return 0;
+ if (errno == EEXIST) return 0;
}
int res;
char *parent = strdup(dir);
@@ -180,7 +179,7 @@ static int mkdir_with_parents(const char *dir, int mode)
if (parentdir) {
res = mkdir_with_parents(parentdir, mode);
} else {
- res = -1;
+ res = -1;
}
free(parent);
if (res == 0) {
@@ -590,7 +589,7 @@ leave:
}
char *errdesc = strerror(errcode);
mb2_multi_status_add_file_error(*errplist, path, errno_to_device_error(errcode), errdesc);
-
+
length = strlen(errdesc);
nlen = htobe32(length+1);
memcpy(buf, &nlen, 4);
@@ -616,7 +615,7 @@ leave_proto_err:
static void mb2_handle_send_files(mobilebackup2_client_t mobilebackup2, plist_t message, const char *backup_dir)
{
- uint32_t cnt;
+ uint32_t cnt;
uint32_t i = 0;
uint32_t sent;
plist_t errplist = NULL;
@@ -1077,15 +1076,15 @@ static void get_hidden_input(char *buf, int maxlen)
static char* ask_for_password(const char* msg, int type_again)
{
char pwbuf[256];
-
+
fprintf(stderr, "%s: ", msg);
fflush(stderr);
get_hidden_input(pwbuf, 256);
fputc('\n', stderr);
-
+
if (type_again) {
char pwrep[256];
-
+
fprintf(stderr, "%s (repeat): ", msg);
fflush(stderr);
get_hidden_input(pwrep, 256);
@@ -1168,7 +1167,7 @@ int main(int argc, char *argv[])
/* we need to exit cleanly on running backups and restores or we cause havok */
signal(SIGINT, clean_exit);
signal(SIGTERM, clean_exit);
-#ifndef WIN32
+#ifndef WIN32
signal(SIGQUIT, clean_exit);
signal(SIGPIPE, SIG_IGN);
#endif
@@ -1274,7 +1273,7 @@ int main(int argc, char *argv[])
if (!argv[i]) {
printf("No argument given for encryption command; requires either 'on' or 'off'.\n");
print_usage(argc, argv);
- return -1;
+ return -1;
}
if (!strcmp(argv[i], "on")) {
cmd_flags |= CMD_FLAG_ENCRYPTION_ENABLE;
@@ -1291,7 +1290,7 @@ int main(int argc, char *argv[])
if (backup_password) {
free(backup_password);
backup_password = NULL;
- }
+ }
i++;
if (argv[i]) {
if (cmd_flags & CMD_FLAG_ENCRYPTION_ENABLE) {
@@ -1304,7 +1303,7 @@ int main(int argc, char *argv[])
}
else if (!strcmp(argv[i], "changepw")) {
cmd = CMD_CHANGEPW;
- cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW;
+ cmd_flags |= CMD_FLAG_ENCRYPTION_CHANGEPW;
// check if passwords were given on command line
if (newpw) {
free(newpw);
@@ -1313,7 +1312,7 @@ int main(int argc, char *argv[])
if (backup_password) {
free(backup_password);
backup_password = NULL;
- }
+ }
i++;
if (argv[i]) {
backup_password = strdup(argv[i]);
@@ -1382,7 +1381,7 @@ int main(int argc, char *argv[])
}
uint8_t is_encrypted = 0;
- char *info_path = NULL;
+ char *info_path = NULL;
if (cmd == CMD_CHANGEPW) {
if (!interactive_mode && !backup_password && !newpw) {
idevice_free(device);
@@ -1609,7 +1608,7 @@ checkpoint:
}
/* TODO: check domain com.apple.mobile.backup key RequiresEncrypt and WillEncrypt with lockdown */
- /* TODO: verify battery on AC enough battery remaining */
+ /* TODO: verify battery on AC enough battery remaining */
/* re-create Info.plist (Device infos, IC-Info.sidb, photos, app_ids, iTunesPrefs) */
if (info_plist) {
@@ -1776,7 +1775,7 @@ checkpoint:
if (newpw) {
free(newpw);
newpw = NULL;
- }
+ }
if (backup_password) {
free(backup_password);
backup_password = NULL;
@@ -2057,7 +2056,6 @@ checkpoint:
printf("%s", str);
free(str);
}
-
break;
}
@@ -2134,7 +2132,7 @@ files_out:
}
} else if (cmd_flags & CMD_FLAG_ENCRYPTION_DISABLE) {
if (operation_ok) {
- PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n");
+ PRINT_VERBOSE(1, "Backup encryption has been disabled successfully.\n");
} else {
PRINT_VERBOSE(1, "Could not disable backup encryption.\n");
}
@@ -2154,7 +2152,6 @@ files_out:
} else {
PRINT_VERBOSE(1, "Restore Failed (Error Code %d).\n", -result_code);
}
-
break;
case CMD_INFO:
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -39,7 +39,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -166,7 +166,7 @@ int main(int argc, char **argv)
if (IDEVICE_E_SUCCESS != idevice_new(&device, udid)) {
if (udid) {
- printf("No device found with udid %s, is it plugged in?\n", udid);
+ printf("No device found with udid %s, is it plugged in?\n", udid);
} else {
printf("No device found, is it plugged in?\n");
}
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -30,7 +30,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] UDID\n", (name ? name + 1: argv[0]));
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdlib.h>
@@ -205,7 +205,7 @@ int main(int argc, char **argv)
if (mobile_image_mounter_new(device, service, &mim) != MOBILE_IMAGE_MOUNTER_E_SUCCESS) {
printf("ERROR: Could not connect to mobile_image_mounter!\n");
goto leave;
- }
+ }
if (service) {
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -35,7 +35,7 @@ static const char *domains[] = {
"com.apple.disk_usage",
"com.apple.disk_usage.factory",
"com.apple.mobile.battery",
-/* FIXME: For some reason lockdownd segfaults on this, works sometimes though
+/* FIXME: For some reason lockdownd segfaults on this, works sometimes though
"com.apple.mobile.debug",. */
"com.apple.iqagent",
"com.apple.purplebuddy",
@@ -81,7 +81,7 @@ static void print_usage(int argc, char **argv)
{
int i = 0;
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#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 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -55,7 +55,7 @@ static void print_error_message(lockdownd_error_t err)
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("\n%s - Manage host pairings with devices and usbmuxd.\n\n", (name ? name + 1: argv[0]));
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
#include <stdlib.h>
@@ -37,7 +37,7 @@
static void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS] COMMAND\n", (name ? name + 1: argv[0]));
printf("Manage provisioning profiles on a device.\n\n");
@@ -411,7 +411,7 @@ int main(int argc, char *argv[])
case OP_INSTALL:
{
unsigned char* profile_data = NULL;
- unsigned int profile_size = 0;
+ unsigned int profile_size = 0;
if (profile_read_from_file(param, &profile_data, &profile_size) != 0) {
break;
}
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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#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 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdio.h>
@@ -187,7 +187,7 @@ int main(int argc, char *argv[])
}
idevice_event_unsubscribe();
stop_logging();
-
+
if (udid) {
free(udid);
}
@@ -198,7 +198,7 @@ int main(int argc, char *argv[])
void print_usage(int argc, char **argv)
{
char *name = NULL;
-
+
name = strrchr(argv[0], '/');
printf("Usage: %s [OPTIONS]\n", (name ? name + 1: argv[0]));
printf("Relay syslog of a connected device.\n\n");