From 47f70113d4342682a6408f85337676f1ccb7e8fe Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 24 Mar 1996 14:58:01 +0000 Subject: Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1. This doesn't change `error (1' calls. --- src/tac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tac.c') diff --git a/src/tac.c b/src/tac.c index 726d5ef7e..350578b72 100644 --- a/src/tac.c +++ b/src/tac.c @@ -145,7 +145,7 @@ With no FILE, or when FILE is -, read standard input.\n\ --version output version information and exit\n\ ")); } - exit (status); + exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } static void @@ -158,7 +158,7 @@ static void cleanup_fatal (void) { cleanup (); - exit (1); + exit (EXIT_FAILURE); } static RETSIGTYPE @@ -622,7 +622,7 @@ main (int argc, char **argv) if (show_version) { printf ("tac - %s\n", PACKAGE_VERSION); - exit (0); + exit (EXIT_SUCCESS); } if (show_help) @@ -681,5 +681,5 @@ main (int argc, char **argv) error (1, errno, "-"); if (close (1) < 0) error (1, errno, _("write error")); - exit (errors); + exit (errors == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } -- cgit v1.2.3-54-g00ecf