summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-22 21:03:13 +0000
committerJim Meyering <jim@meyering.net>2004-01-22 21:03:13 +0000
commitae3cdb71e99f18b2deb72d8108052da593440c31 (patch)
tree44fdb2130a26a40d4c4be492542c1c3637e8b19b
parent78ac13ca26739bdb46a6d0144f55d3870692944e (diff)
downloadcoreutils-ae3cdb71e99f18b2deb72d8108052da593440c31.tar.xz
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(main): Use initialize_exit_failure rather than setting exit_failure directly; this optimizes away redundant assignments.
-rw-r--r--src/test.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/test.c b/src/test.c
index 9cd691acf..ef2b35f96 100644
--- a/src/test.c
+++ b/src/test.c
@@ -2,7 +2,7 @@
/* Modified to run with the GNU shell by bfox. */
-/* Copyright (C) 1987-2003 Free Software Foundation, Inc.
+/* Copyright (C) 1987-2004 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
@@ -42,7 +42,6 @@
#include "system.h"
#include "error.h"
-#include "exitfail.h"
#include "euidaccess.h"
#ifndef _POSIX_VERSION
@@ -968,7 +967,7 @@ posixtest (int nargs)
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
@@ -1085,7 +1084,7 @@ main (int margc, char **margv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- exit_failure = TEST_FAILURE;
+ initialize_exit_failure (TEST_FAILURE);
atexit (close_stdout);
#endif /* TEST_STANDALONE */