summaryrefslogtreecommitdiff
path: root/src/fold.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 23:07:15 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 23:07:15 +0000
commita9f7720ec980316e700e185d0f1059ba3457f0a8 (patch)
tree333f2fd862aa66d203e75f4f64803059c1bc426e /src/fold.c
parenta86c7314d8d8f60210cafc16cf8fbbe7794f6008 (diff)
downloadcoreutils-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.c4
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