From c75dc9689ef7a158da9b27e28ccd1b0e823e309d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 20 May 2000 22:03:55 +0000 Subject: Arrange to call close_stdout upon exit. Don't close stdout explicitly. --- src/cksum.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/cksum.c b/src/cksum.c index 0dfb31966..b185e5d45 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -113,6 +113,7 @@ main () # include # include # include "system.h" +# include "closeout.h" # include "long-options.h" # include "error.h" @@ -293,6 +294,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); -- cgit v1.2.3-70-g09d2