1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-20 18:56:39 +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

@@ -121,7 +121,7 @@ PREFIX is `x'. With no INPUT, or when INPUT is -, read standard input.\n\
SIZE may have a multiplier suffix: b for 512, k for 1K, m for 1 Meg.\n\
"));
}
exit (status);
exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
/* Compute the next sequential output file name suffix and store it
@@ -454,7 +454,7 @@ main (int argc, char **argv)
if (show_version)
{
printf ("split - %s\n", PACKAGE_VERSION);
exit (0);
exit (EXIT_SUCCESS);
}
if (show_help)
@@ -538,5 +538,5 @@ main (int argc, char **argv)
if (output_desc >= 0 && close (output_desc) < 0)
error (1, errno, "%s", outfile);
exit (0);
exit (EXIT_SUCCESS);
}