summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Martin Szulecki2010-05-28 13:29:59 +0200
committerGravatar Martin Szulecki2010-06-06 16:20:28 +0200
commitccde701fe43f738b62f31a02c611ef7bfa057285 (patch)
tree1d7e88f030f5b938ea4094791642f8da14a82257
parentece6915773837b578d42ff663b169b14abca7f18 (diff)
downloadlibimobiledevice-ccde701fe43f738b62f31a02c611ef7bfa057285.tar.gz
libimobiledevice-ccde701fe43f738b62f31a02c611ef7bfa057285.tar.bz2
Fix indentation and a printf warning in ideviceimagemounter
-rw-r--r--tools/ideviceimagemounter.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/tools/ideviceimagemounter.c b/tools/ideviceimagemounter.c
index 03fe112..6b9cb88 100644
--- a/tools/ideviceimagemounter.c
+++ b/tools/ideviceimagemounter.c
@@ -48,18 +48,18 @@ static const char PATH_PREFIX[] = "/private/var/mobile/Media";
static void print_usage(int argc, char **argv)
{
- char *name = NULL;
+ char *name = NULL;
- name = strrchr(argv[0], '/');
- printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n\n", (name ? name + 1: argv[0]));
- printf("Mounts the specified disk image on the device.\n\n");
- printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n");
+ name = strrchr(argv[0], '/');
+ printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n\n", (name ? name + 1: argv[0]));
+ printf("Mounts the specified disk image on the device.\n\n");
+ printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n");
printf(" -l, --list\t\tList mount information\n");
printf(" -t, --imagetype\tImage type to use, default is 'Developer'\n");
printf(" -x, --xml\t\tUse XML output\n");
- printf(" -d, --debug\t\tenable communication debugging\n");
- printf(" -h, --help\t\tprints usage information\n");
- printf("\n");
+ printf(" -d, --debug\t\tenable communication debugging\n");
+ printf(" -h, --help\t\tprints usage information\n");
+ printf("\n");
}
static void parse_opts(int argc, char **argv)
@@ -420,7 +420,7 @@ int main(int argc, char **argv)
}
if (total != amount) {
fprintf(stderr, "Error: wrote only %d of %d\n", total,
- amount);
+ (unsigned int)amount);
afc_file_close(afc, af);
fclose(f);
goto leave;
@@ -517,7 +517,7 @@ leave:
idevice_free(device);
if (image_path)
- free(image_path);
+ free(image_path);
if (image_sig_path)
free(image_sig_path);