diff options
Diffstat (limited to 'misc-utils/mcookie.c')
-rw-r--r-- | misc-utils/mcookie.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc-utils/mcookie.c b/misc-utils/mcookie.c index 8598ac345..ea29a8209 100644 --- a/misc-utils/mcookie.c +++ b/misc-utils/mcookie.c @@ -147,7 +147,7 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - atexit(close_stdout); + close_stdout_atexit(); while ((c = getopt_long(argc, argv, "f:m:vVh", longopts, NULL)) != -1) { switch (c) { @@ -163,9 +163,9 @@ int main(int argc, char **argv) ctl.maxsz = strtosize_or_err(optarg, _("failed to parse length")); break; + case 'V': - printf(UTIL_LINUX_VERSION); - return EXIT_SUCCESS; + print_version(EXIT_SUCCESS); case 'h': usage(); default: |