1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.

This doesn't change `error (1' calls.
This commit is contained in:
Jim Meyering
1996-03-24 14:58:01 +00:00
parent 2fa0c16e5e
commit 47f70113d4
23 changed files with 104 additions and 98 deletions

View File

@@ -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);
}