]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - disk-utils/isosize.c
misc: consolidate version printing and close_stdout()
[thirdparty/util-linux.git] / disk-utils / isosize.c
index 85a549a1891905d86ffb594e1326ca16931a62b6..3c8d40f3caf30550cc6e7ca4668b9aac34f2c2d9 100644 (file)
@@ -177,7 +177,7 @@ int main(int argc, char **argv)
        setlocale(LC_ALL, "");
        bindtextdomain(PACKAGE, LOCALEDIR);
        textdomain(PACKAGE);
-       atexit(close_stdout);
+       close_stdout_atexit();
 
        while ((opt = getopt_long(argc, argv, "d:xVh", longopts, NULL)) != -1) {
                switch (opt) {
@@ -190,8 +190,7 @@ int main(int argc, char **argv)
                        xflag = 1;
                        break;
                case 'V':
-                       printf(UTIL_LINUX_VERSION);
-                       return EXIT_SUCCESS;
+                       print_version(EXIT_SUCCESS);
                case 'h':
                        usage();
                default: