summaryrefslogtreecommitdiffstats
path: root/term-utils/wall.c
diff options
context:
space:
mode:
Diffstat (limited to 'term-utils/wall.c')
-rw-r--r--term-utils/wall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/term-utils/wall.c b/term-utils/wall.c
index ce5363c7e..c606e6347 100644
--- a/term-utils/wall.c
+++ b/term-utils/wall.c
@@ -202,7 +202,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- atexit(close_stdout);
+ close_stdout_atexit();
while ((ch = getopt_long(argc, argv, "nt:g:Vh", longopts, NULL)) != -1) {
switch (ch) {
@@ -220,9 +220,9 @@ int main(int argc, char **argv)
case 'g':
group_buf = init_group_workspace(optarg);
break;
+
case 'V':
- printf(UTIL_LINUX_VERSION);
- exit(EXIT_SUCCESS);
+ print_version(EXIT_SUCCESS);
case 'h':
usage();
default: