summaryrefslogtreecommitdiffstats
path: root/sys-utils/readprofile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/readprofile.c')
-rw-r--r--sys-utils/readprofile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-utils/readprofile.c b/sys-utils/readprofile.c
index ca0037529..1d484252a 100644
--- a/sys-utils/readprofile.c
+++ b/sys-utils/readprofile.c
@@ -169,7 +169,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
- atexit(close_stdout);
+ close_stdout_atexit();
proFile = defaultpro;
mapFile = defaultmap;
@@ -206,9 +206,9 @@ int main(int argc, char **argv)
case 'v':
optVerbose++;
break;
+
case 'V':
- printf(UTIL_LINUX_VERSION);
- return EXIT_SUCCESS;
+ print_version(EXIT_SUCCESS);
case 'h':
usage();
default: