diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:49:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:49:06 +0000 |
commit | 73ed5ed51e0ae7ac5c7f606ba571b9cfbf5707b3 (patch) | |
tree | bac1dff50796148d40cd211942449243fd8182bb /src/basename.c | |
parent | a3d40a9447e08adf7783f1e096463e64ed82f761 (diff) | |
download | coreutils-73ed5ed51e0ae7ac5c7f606ba571b9cfbf5707b3.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/basename.c')
-rw-r--r-- | src/basename.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/basename.c b/src/basename.c index ffdb6759a..5ac75a534 100644 --- a/src/basename.c +++ b/src/basename.c @@ -1,5 +1,5 @@ /* basename -- strip directory and suffix from filenames - Copyright (C) 1990-1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1990-1997, 1999, 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 @@ -32,6 +32,7 @@ #include "system.h" #include "long-options.h" #include "error.h" +#include "closeout.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "basename" @@ -98,6 +99,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); /* The above handles --help and --version. |