diff options
author | Martin Szulecki | 2010-05-28 13:29:59 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-06-06 16:20:28 +0200 |
commit | ccde701fe43f738b62f31a02c611ef7bfa057285 (patch) | |
tree | 1d7e88f030f5b938ea4094791642f8da14a82257 | |
parent | ece6915773837b578d42ff663b169b14abca7f18 (diff) | |
download | libimobiledevice-ccde701fe43f738b62f31a02c611ef7bfa057285.tar.gz libimobiledevice-ccde701fe43f738b62f31a02c611ef7bfa057285.tar.bz2 |
Fix indentation and a printf warning in ideviceimagemounter
-rw-r--r-- | tools/ideviceimagemounter.c | 20 |
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); |