diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:55:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:55:15 +0000 |
commit | c6bd79ad34d826c3f6b3963ea972d633fa98b34c (patch) | |
tree | 0bd8b4c14f2fe2d35c74709a727f23274c6c5c01 /src/pathchk.c | |
parent | 52150ef51d015957dbd713886a962011c21b7ff2 (diff) | |
download | coreutils-c6bd79ad34d826c3f6b3963ea972d633fa98b34c.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/pathchk.c')
-rw-r--r-- | src/pathchk.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pathchk.c b/src/pathchk.c index 97f2fb9d6..74241588a 100644 --- a/src/pathchk.c +++ b/src/pathchk.c @@ -1,5 +1,5 @@ /* pathchk -- check whether pathnames are valid or portable - Copyright (C) 1991-1999 Free Software Foundation, Inc. + Copyright (C) 1991-2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -46,6 +46,7 @@ #include "system.h" #include "error.h" #include "long-options.h" +#include "closeout.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "pathchk" @@ -139,6 +140,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); |