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/fmt.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/fmt.c')
-rw-r--r-- | src/fmt.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -301,7 +301,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\ In -wNUMBER, the letter `w' may be omitted.\n"), stdout); } - exit (status); + exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); } /* Decode options and launch execution. */ @@ -398,7 +398,7 @@ main (register int argc, register char **argv) if (show_version) { printf ("fmt - %s\n", PACKAGE_VERSION); - exit (0); + exit (EXIT_SUCCESS); } if (show_help) @@ -424,7 +424,7 @@ main (register int argc, register char **argv) error (0, errno, argv[optind]); } - exit (0); + exit (EXIT_SUCCESS); } /* Trim space from the front and back of the string P, yielding the prefix, |