diff options
Diffstat (limited to 'src/split.c')
-rw-r--r-- | src/split.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/split.c b/src/split.c index ec2e3e1cf..554dcf947 100644 --- a/src/split.c +++ b/src/split.c @@ -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); } |