Include "exitfail.h".

(main): Set exit_failure rather than calling close_stdout_set_status.
This commit is contained in:
Jim Meyering committed 2003-07-19 08:16:38 +00:00
1 parent 3fd76bf433
commit fe52d65af0
3 files changed
+5 -3

No files matched your search

+2 -1
View File
@@ -29,6 +29,7 @@
#include "argmatch.h"
#include "closeout.h"
#include "error.h"
#include "exitfail.h"
#include "getdate.h"
#include "getline.h"
#include "posixtm.h"
@@ -309,7 +310,7 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
close_stdout_set_status (2);
exit_failure = 2;
atexit (close_stdout);
while ((optc = getopt_long (argc, argv, short_options, long_options, NULL))
+1 -1
View File
@@ -2183,8 +2183,8 @@ main (int argc, char **argv)
atexit (cleanup);
exit_failure = SORT_FAILURE;
atexit (close_stdout);
close_stdout_set_status (SORT_FAILURE);
hard_LC_COLLATE = hard_locale (LC_COLLATE);
#if HAVE_NL_LANGINFO
+2 -1
View File
@@ -29,6 +29,7 @@
#include "system.h"
#include "closeout.h"
#include "exitfail.h"
#include "error.h"
/* The official name of this program (e.g., no `g' prefix). */
@@ -84,7 +85,7 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
close_stdout_set_status (3);
exit_failure = 3;
atexit (close_stdout);
silent = 0;