]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - disk-utils/resizepart.c
misc: consolidate version printing and close_stdout()
[thirdparty/util-linux.git] / disk-utils / resizepart.c
index 527517f242f22a6e2a5fc991e96a6ffa14c1e83c..b2738271e25da14c3cf4f82d234f6c123c9ebc5d 100644 (file)
@@ -80,13 +80,12 @@ 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, "Vh", longopts, NULL)) != -1)
                switch (c) {
                case 'V':
-                       printf(UTIL_LINUX_VERSION);
-                       return EXIT_SUCCESS;
+                       print_version(EXIT_SUCCESS);
                case 'h':
                        usage();
                default: