diff options
author | Martin Szulecki | 2010-05-28 13:29:59 +0200 |
---|---|---|
committer | Martin Szulecki | 2010-05-28 13:29:59 +0200 |
commit | c611444be97a2074bb815defe3379cf5deef8409 (patch) | |
tree | 80492b40de56927e81ab21e028150f1962e5052e /tools/ideviceimagemounter.c | |
parent | 448e860d7b99377a5f0c8786c7e60afb2f9dc0bd (diff) | |
download | libimobiledevice-c611444be97a2074bb815defe3379cf5deef8409.tar.gz libimobiledevice-c611444be97a2074bb815defe3379cf5deef8409.tar.bz2 |
Fix indentation and a printf warning in ideviceimagemounter
Diffstat (limited to 'tools/ideviceimagemounter.c')
-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); |