]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - disk-utils/mkfs.minix.c
misc: consolidate version printing and close_stdout()
[thirdparty/util-linux.git] / disk-utils / mkfs.minix.c
index 8e6811f49d956f9b29d9ccbf5e8f1bcaa165e37d..ed03f4a42d04a989c9a08242d7c522bc884c96ce 100644 (file)
@@ -758,7 +758,7 @@ int main(int argc, char ** argv)
        setlocale(LC_ALL, "");
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
-       atexit(close_stdout);
+       close_stdout_atexit();
 
        strutils_set_exitcode(MKFS_EX_USAGE);
 
@@ -792,8 +792,7 @@ int main(int argc, char ** argv)
                        listfile = optarg;
                        break;
                case 'V':
-                       printf(UTIL_LINUX_VERSION);
-                       return MKFS_EX_OK;
+                       print_version(MKFS_EX_OK);
                case 'h':
                        usage();
                default: