summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2000-06-23 19:43:11 +0000
committerPaul Smith <psmith@gnu.org>2000-06-23 19:43:11 +0000
commit88187d9f4b963227e72a46848826eab93545da6e (patch)
tree7fa0767fa4e26229cea78e4acae55d46895d99c9 /main.c
parent775b644765b99511f2bae2772b2812128f864d79 (diff)
downloadgunmake-88187d9f4b963227e72a46848826eab93545da6e.tar.gz
* Fix PR/1791.
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.c b/main.c
index af40349..c82591b 100644
--- a/main.c
+++ b/main.c
@@ -1904,16 +1904,16 @@ int main (int argc, char ** argv)
/* Nothing happened. */
case 0:
/* Updated successfully. */
- status = EXIT_SUCCESS;
+ status = MAKE_SUCCESS;
+ break;
+ case 1:
+ /* We are under -q and would run some commands. */
+ status = MAKE_TROUBLE;
break;
case 2:
/* Updating failed. POSIX.2 specifies exit status >1 for this;
but in VMS, there is only success and failure. */
- status = EXIT_FAILURE ? 2 : EXIT_FAILURE;
- break;
- case 1:
- /* We are under -q and would run some commands. */
- status = EXIT_FAILURE;
+ status = MAKE_FAILURE;
break;
default:
abort ();