summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-07-19 08:17:06 +0000
committerJim Meyering <jim@meyering.net>2003-07-19 08:17:06 +0000
commitdb34cf4ee64cfd8b450bba5e7f8738d3dec47cbd (patch)
treedfd32653f482627a9e0e9f9484b6670ba16d4b5f /src
parentfe52d65af0fcfdc89b67442d4516449eec41d546 (diff)
downloadcoreutils-db34cf4ee64cfd8b450bba5e7f8738d3dec47cbd.tar.xz
Include "exitfail.h".
(main): Set exit_failure rather than calling close_stdout_set_status.
Diffstat (limited to 'src')
-rw-r--r--src/printenv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/printenv.c b/src/printenv.c
index 276869e26..f1aa79ffd 100644
--- a/src/printenv.c
+++ b/src/printenv.c
@@ -35,6 +35,7 @@
#include "system.h"
#include "closeout.h"
#include "error.h"
+#include "exitfail.h"
#include "long-options.h"
/* The official name of this program (e.g., no `g' prefix). */
@@ -90,7 +91,7 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- close_stdout_set_status (2);
+ exit_failure = 2;
atexit (close_stdout);
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,