]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/fsfreeze.c
misc: consolidate version printing and close_stdout()
[thirdparty/util-linux.git] / sys-utils / fsfreeze.c
index 401ab5c980c3f9078fdb56b8fff78db7381d7665..4da1a6fa3cf284c53f64af4dc117230c09909814 100644 (file)
@@ -84,18 +84,17 @@ int main(int argc, char **argv)
                err_exclusive_options(c, longopts, excl, excl_st);
 
                switch(c) {
-               case 'h':
-                       usage();
-                       break;
                case 'f':
                        action = FREEZE;
                        break;
                case 'u':
                        action = UNFREEZE;
                        break;
+
+               case 'h':
+                       usage();
                case 'V':
-                       printf(UTIL_LINUX_VERSION);
-                       exit(EXIT_SUCCESS);
+                       print_version(EXIT_SUCCESS);
                default:
                        errtryhelp(EXIT_FAILURE);
                }