summaryrefslogtreecommitdiffstats
path: root/tools/ideviceimagemounter.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/ideviceimagemounter.c')
-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";
48 48
49static void print_usage(int argc, char **argv) 49static void print_usage(int argc, char **argv)
50{ 50{
51 char *name = NULL; 51 char *name = NULL;
52 52
53 name = strrchr(argv[0], '/'); 53 name = strrchr(argv[0], '/');
54 printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n\n", (name ? name + 1: argv[0])); 54 printf("Usage: %s [OPTIONS] IMAGE_FILE IMAGE_SIGNATURE_FILE\n\n", (name ? name + 1: argv[0]));
55 printf("Mounts the specified disk image on the device.\n\n"); 55 printf("Mounts the specified disk image on the device.\n\n");
56 printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n"); 56 printf(" -u, --uuid UUID\ttarget specific device by its 40-digit device UUID\n");
57 printf(" -l, --list\t\tList mount information\n"); 57 printf(" -l, --list\t\tList mount information\n");
58 printf(" -t, --imagetype\tImage type to use, default is 'Developer'\n"); 58 printf(" -t, --imagetype\tImage type to use, default is 'Developer'\n");
59 printf(" -x, --xml\t\tUse XML output\n"); 59 printf(" -x, --xml\t\tUse XML output\n");
60 printf(" -d, --debug\t\tenable communication debugging\n"); 60 printf(" -d, --debug\t\tenable communication debugging\n");
61 printf(" -h, --help\t\tprints usage information\n"); 61 printf(" -h, --help\t\tprints usage information\n");
62 printf("\n"); 62 printf("\n");
63} 63}
64 64
65static void parse_opts(int argc, char **argv) 65static void parse_opts(int argc, char **argv)
@@ -420,7 +420,7 @@ int main(int argc, char **argv)
420 } 420 }
421 if (total != amount) { 421 if (total != amount) {
422 fprintf(stderr, "Error: wrote only %d of %d\n", total, 422 fprintf(stderr, "Error: wrote only %d of %d\n", total,
423 amount); 423 (unsigned int)amount);
424 afc_file_close(afc, af); 424 afc_file_close(afc, af);
425 fclose(f); 425 fclose(f);
426 goto leave; 426 goto leave;
@@ -517,7 +517,7 @@ leave:
517 idevice_free(device); 517 idevice_free(device);
518 518
519 if (image_path) 519 if (image_path)
520 free(image_path); 520 free(image_path);
521 if (image_sig_path) 521 if (image_sig_path)
522 free(image_sig_path); 522 free(image_sig_path);
523 523