(main): Set exit_failure rather than calling close_stdout_set_status.
#include "argmatch.h"
#include "closeout.h"
#include "error.h"
+#include "exitfail.h"
#include "getdate.h"
#include "getline.h"
#include "posixtm.h"
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))
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
#include "system.h"
#include "closeout.h"
+#include "exitfail.h"
#include "error.h"
/* The official name of this program (e.g., no `g' prefix). */
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- close_stdout_set_status (3);
+ exit_failure = 3;
atexit (close_stdout);
silent = 0;