summaryrefslogtreecommitdiffstats
path: root/login-utils/utmpdump.c
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils/utmpdump.c')
-rw-r--r--login-utils/utmpdump.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/login-utils/utmpdump.c b/login-utils/utmpdump.c
index 5cc87834a..f1a3607dc 100644
--- a/login-utils/utmpdump.c
+++ b/login-utils/utmpdump.c
@@ -334,7 +334,7 @@ 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, "fro:hV", longopts, NULL)) != -1) {
switch (c) {
@@ -355,10 +355,8 @@ int main(int argc, char **argv)
case 'h':
usage();
- break;
case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
+ print_version(EXIT_SUCCESS);
default:
errtryhelp(EXIT_FAILURE);
}