summaryrefslogtreecommitdiff
path: root/mkfs
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-06 12:17:33 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-06 12:17:33 +0100
commit5fa2d158266c24528132589a1bd77b33de7d4d25 (patch)
tree9c3c6517a1e112a51a02298e8422a33f54841788 /mkfs
parent2c49bf4fca54e9acb47844878cc43617ce2a1422 (diff)
Cleanup: remove BSD style __progname
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs')
-rw-r--r--mkfs/options.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mkfs/options.c b/mkfs/options.c
index d741d1a..83f1bae 100644
--- a/mkfs/options.c
+++ b/mkfs/options.c
@@ -40,10 +40,8 @@ static const char *short_opts = "F:D:X:c:b:B:d:j:Q:kxoefqhV"
#endif
;
-extern char *__progname;
-
static const char *help_string =
-"Usage: %s [OPTIONS...] <squashfs-file>\n"
+"Usage: gensquashfs [OPTIONS...] <squashfs-file>\n"
"\n"
"Possible options:\n"
"\n"
@@ -231,13 +229,13 @@ void process_command_line(options_t *opt, int argc, char **argv)
break;
#endif
case 'h':
- printf(help_string, __progname,
+ printf(help_string,
SQFS_DEFAULT_BLOCK_SIZE, SQFS_DEVBLK_SIZE);
fputs(help_details, stdout);
compressor_print_available();
exit(EXIT_SUCCESS);
case 'V':
- print_version();
+ print_version("gensquashfs");
exit(EXIT_SUCCESS);
default:
goto fail_arg;
@@ -269,6 +267,6 @@ void process_command_line(options_t *opt, int argc, char **argv)
opt->cfg.filename = argv[optind++];
return;
fail_arg:
- fprintf(stderr, "Try `%s --help' for more information.\n", __progname);
+ fputs("Try `gensquashfs --help' for more information.\n", stderr);
exit(EXIT_FAILURE);
}