diff options
Diffstat (limited to 'mkfs/options.c')
-rw-r--r-- | mkfs/options.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/mkfs/options.c b/mkfs/options.c index d19e5af..a1077b4 100644 --- a/mkfs/options.c +++ b/mkfs/options.c @@ -1,5 +1,6 @@ /* SPDX-License-Identifier: GPL-3.0-or-later */ #include "mksquashfs.h" +#include "util.h" #include <stdlib.h> #include <getopt.h> @@ -37,21 +38,8 @@ static const char *defaults[] = { NULL }; -#define LICENSE_SHORT "GPLv3+" -#define LICENSE_LONG "GNU GPL version 3 or later" -#define LICENSE_URL "https://gnu.org/licenses/gpl.html" - extern char *__progname; -static const char *version_string = -"%s (%s) %s\n" -"Copyright (c) 2019 David Oberhollenzer\n" -"License " LICENSE_SHORT ": " LICENSE_LONG " <" LICENSE_URL ">.\n" -"This is free software: you are free to change and redistribute it.\n" -"There is NO WARRANTY, to the extent permitted by law.\n" -"\n" -"Written by David Oberhollenzer.\n"; - static const char *help_string = "Usage: %s [OPTIONS] <file-list> <squashfs-file>\n" "\n" @@ -286,8 +274,7 @@ void process_command_line(options_t *opt, int argc, char **argv) exit(EXIT_SUCCESS); case 'V': - printf(version_string, __progname, - PACKAGE_NAME, PACKAGE_VERSION); + print_version(); exit(EXIT_SUCCESS); default: goto fail_arg; |