summaryrefslogtreecommitdiffstats
path: root/sys-utils/pivot_root.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/pivot_root.c')
-rw-r--r--sys-utils/pivot_root.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys-utils/pivot_root.c b/sys-utils/pivot_root.c
index ea76d94bf..aef1b12bb 100644
--- a/sys-utils/pivot_root.c
+++ b/sys-utils/pivot_root.c
@@ -55,13 +55,12 @@ 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, "Vh", longopts, NULL)) != -1)
switch (ch) {
case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
+ print_version(EXIT_SUCCESS);
case 'h':
usage();
default: