summaryrefslogtreecommitdiffstats
path: root/misc-utils/wipefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/wipefs.c')
-rw-r--r--misc-utils/wipefs.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/misc-utils/wipefs.c b/misc-utils/wipefs.c
index 13a720e85..78e5ac376 100644
--- a/misc-utils/wipefs.c
+++ b/misc-utils/wipefs.c
@@ -700,7 +700,7 @@ 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, "abfhiJnO:o:pqt:V", longopts, NULL)) != -1) {
@@ -716,9 +716,6 @@ main(int argc, char **argv)
case 'f':
ctl.force = 1;
break;
- case 'h':
- usage();
- break;
case 'J':
ctl.json = 1;
break;
@@ -745,9 +742,11 @@ main(int argc, char **argv)
case 't':
ctl.type_pattern = optarg;
break;
+
+ case 'h':
+ usage();
case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
+ print_version(EXIT_SUCCESS);
default:
errtryhelp(EXIT_FAILURE);
}