summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-01-21 22:56:47 +0000
committerJim Meyering <jim@meyering.net>2004-01-21 22:56:47 +0000
commit02e20fbfea39810a380d2a1c94129c0fcb050d37 (patch)
treee0befb776c83634ea7d13dd771fbd96d988eed43
parentebdc23b3c0fde85e80e27a77ae50e9cfe726f368 (diff)
downloadcoreutils-02e20fbfea39810a380d2a1c94129c0fcb050d37.tar.xz
(usage): Use EXIT_SUCCESS, not 0, for clarity.
-rw-r--r--src/dirname.c4
-rw-r--r--src/du.c2
-rw-r--r--src/echo.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/dirname.c b/src/dirname.c
index 347623dbc..3e3b6eb6a 100644
--- a/src/dirname.c
+++ b/src/dirname.c
@@ -1,5 +1,5 @@
/* dirname -- strip filename suffix from pathname
- Copyright (C) 1990-1997, 1999-2002 Free Software Foundation, Inc.
+ Copyright (C) 1990-1997, 1999-2002, 2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -37,7 +37,7 @@ char *program_name;
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
diff --git a/src/du.c b/src/du.c
index c50c74a8c..23a65cec7 100644
--- a/src/du.c
+++ b/src/du.c
@@ -159,7 +159,7 @@ static struct option const long_options[] =
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else
diff --git a/src/echo.c b/src/echo.c
index bd79cc96c..d9ae62032 100644
--- a/src/echo.c
+++ b/src/echo.c
@@ -1,5 +1,5 @@
/* echo.c, derived from code echo.c in Bash.
- Copyright (C) 87,89, 1991-1997, 1999-2003 Free Software Foundation, Inc.
+ Copyright (C) 87,89, 1991-1997, 1999-2004 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -68,7 +68,7 @@ char *program_name;
void
usage (int status)
{
- if (status != 0)
+ if (status != EXIT_SUCCESS)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
program_name);
else