diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 23:07:15 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 23:07:15 +0000 |
commit | a9f7720ec980316e700e185d0f1059ba3457f0a8 (patch) | |
tree | 333f2fd862aa66d203e75f4f64803059c1bc426e /src/fold.c | |
parent | a86c7314d8d8f60210cafc16cf8fbbe7794f6008 (diff) | |
download | coreutils-a9f7720ec980316e700e185d0f1059ba3457f0a8.tar.xz |
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
Diffstat (limited to 'src/fold.c')
-rw-r--r-- | src/fold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fold.c b/src/fold.c index 6f50f02b6..a36ce6c94 100644 --- a/src/fold.c +++ b/src/fold.c @@ -58,7 +58,7 @@ static struct option const longopts[] = void usage (int status) { - if (status != 0) + if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else @@ -84,7 +84,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\ fputs (VERSION_OPTION_DESCRIPTION, stdout); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } - exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); + exit (status); } /* Assuming the current column is COLUMN, return the column that |