diff options
Diffstat (limited to 'misc-utils/cal.c')
-rw-r--r-- | misc-utils/cal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/misc-utils/cal.c b/misc-utils/cal.c index bbb22505e..c7e8d9511 100644 --- a/misc-utils/cal.c +++ b/misc-utils/cal.c @@ -332,7 +332,7 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); - atexit(close_stdout); + close_stdout_atexit(); term = getenv("TERM"); if (term) { @@ -435,8 +435,7 @@ int main(int argc, char **argv) ctl.reform_year = ISO; break; case 'V': - printf(UTIL_LINUX_VERSION); - return EXIT_SUCCESS; + print_version(EXIT_SUCCESS); case 'h': usage(); default: |