summaryrefslogtreecommitdiffstats
path: root/sys-utils/choom.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/choom.c')
-rw-r--r--sys-utils/choom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/choom.c b/sys-utils/choom.c
index eff95b6bf..1096ab186 100644
--- a/sys-utils/choom.c
+++ b/sys-utils/choom.c
@@ -94,7 +94,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, "hn:p:V", longopts, NULL)) != -1) {
switch (c) {
@@ -105,9 +105,9 @@ int main(int argc, char **argv)
adj = strtos32_or_err(optarg, _("invalid adjust argument"));
has_adj = 1;
break;
+
case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
+ print_version(EXIT_SUCCESS);
case 'h':
usage();
default: