diff options
author | Jim Meyering <jim@meyering.net> | 1996-03-24 14:58:01 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1996-03-24 14:58:01 +0000 |
commit | 47f70113d4342682a6408f85337676f1ccb7e8fe (patch) | |
tree | e0a69d9a12ac5b336364cc0191f2390d5061fd50 /src/comm.c | |
parent | 2fa0c16e5e11ff23fb4e57246a21d9d0ef731caa (diff) | |
download | coreutils-47f70113d4342682a6408f85337676f1ccb7e8fe.tar.xz |
Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
This doesn't change `error (1' calls.
Diffstat (limited to 'src/comm.c')
-rw-r--r-- | src/comm.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/comm.c b/src/comm.c index 0aaa532a0..cca8cc20d 100644 --- a/src/comm.c +++ b/src/comm.c @@ -79,7 +79,7 @@ Compare sorted files LEFT_FILE and RIGHT_FILE line by line.\n\ --version output version information and exit\n\ ")); } - exit (status); + exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } /* Output the line in linebuffer LINE to stream STREAM @@ -250,7 +250,7 @@ main (int argc, char **argv) if (show_version) { printf ("comm - %s\n", PACKAGE_VERSION); - exit (0); + exit (EXIT_SUCCESS); } if (show_help) @@ -259,5 +259,6 @@ main (int argc, char **argv) if (optind + 2 != argc) usage (1); - exit (compare_files (argv + optind)); + exit (compare_files (argv + optind) == 0 + ? EXIT_SUCCESS : EXIT_FAILURE); } |