(usage): Use EXIT_SUCCESS, not 0, for clarity.

This commit is contained in:
Jim Meyering committed 2004-01-21 22:56:47 +00:00
1 parent ebdc23b3c0
commit 02e20fbfea
3 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -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
+1 -1
View File
@@ -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
+2 -2
View File
@@ -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