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/cut.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/cut.c') diff --git a/src/cut.c b/src/cut.c index 63490cee8..a8681d5cf 100644 --- a/src/cut.c +++ b/src/cut.c @@ -221,7 +221,7 @@ range, or many ranges separated by commas. Each range is one of:\n\ With no FILE, or when FILE is -, read standard input.\n\ ")); } - exit (status); + exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } /* The following function was copied from getline.c, but with these changes: @@ -737,7 +737,7 @@ main (int argc, char **argv) if (show_version) { printf ("cut - %s\n", PACKAGE_VERSION); - exit (0); + exit (EXIT_SUCCESS); } if (show_help) @@ -770,5 +770,5 @@ main (int argc, char **argv) if (ferror (stdout) || fclose (stdout) == EOF) error (1, errno, _("write error")); - exit (exit_status); + exit (exit_status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } -- cgit v1.2.3-54-g00ecf