summaryrefslogtreecommitdiffstats
path: root/schedutils/ionice.c
diff options
context:
space:
mode:
Diffstat (limited to 'schedutils/ionice.c')
-rw-r--r--schedutils/ionice.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/schedutils/ionice.c b/schedutils/ionice.c
index b4c6a82a2..ae2c73ea5 100644
--- a/schedutils/ionice.c
+++ b/schedutils/ionice.c
@@ -149,7 +149,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, "+n:c:p:P:u:tVh", longopts, NULL)) != EOF)
switch (c) {
@@ -197,9 +197,9 @@ int main(int argc, char **argv)
case 't':
tolerant = 1;
break;
+
case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
+ print_version(EXIT_SUCCESS);
case 'h':
usage();
default: