From 02e20fbfea39810a380d2a1c94129c0fcb050d37 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 21 Jan 2004 22:56:47 +0000 Subject: (usage): Use EXIT_SUCCESS, not 0, for clarity. --- src/dirname.c | 4 ++-- src/du.c | 2 +- src/echo.c | 4 ++-- 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 -- cgit v1.2.3-70-g09d2