diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:46:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:46:33 +0000 |
commit | 72bdac727100dd893ad1041cb9a06b48fa211058 (patch) | |
tree | 8eaf75b31d328c20dcc50e79e2b124c552a0ee62 /src/uptime.c | |
parent | f1013a15356cd77518af435233564f0ba7b7c099 (diff) | |
download | coreutils-72bdac727100dd893ad1041cb9a06b48fa211058.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/uptime.c')
-rw-r--r-- | src/uptime.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/uptime.c b/src/uptime.c index 084831fa7..eec73771a 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -25,6 +25,7 @@ #include "long-options.h" #include "readutmp.h" #include "system.h" +#include "closeout.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "uptime" @@ -192,6 +193,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION, AUTHORS, usage); |