summaryrefslogtreecommitdiffstats
path: root/login-utils/vipw.c
diff options
context:
space:
mode:
Diffstat (limited to 'login-utils/vipw.c')
-rw-r--r--login-utils/vipw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/login-utils/vipw.c b/login-utils/vipw.c
index 2502fcb4e..2b35036e6 100644
--- a/login-utils/vipw.c
+++ b/login-utils/vipw.c
@@ -325,7 +325,7 @@ int main(int argc, char *argv[])
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- atexit(close_stdout);
+ close_stdout_atexit();
if (!strcmp(program_invocation_short_name, "vigr")) {
program = VIGR;
@@ -338,8 +338,7 @@ int main(int argc, char *argv[])
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: