]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Use EXIT_SUCCESS, not 0, for clarity.
authorJim Meyering <jim@meyering.net>
Wed, 21 Jan 2004 22:56:47 +0000 (22:56 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 21 Jan 2004 22:56:47 +0000 (22:56 +0000)
src/dirname.c
src/du.c
src/echo.c

index 347623dbc5439a7ab8248d924134e692caf321a1..3e3b6eb6ad328f6dfd596741308380110b0b0fe1 100644 (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
index c50c74a8cee8466e402fcb33e607aebdfd6ce5ab..23a65cec74e405aaa9472a35dd40adb261e90369 100644 (file)
--- 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
index bd79cc96cf77b06a80dbc1c95caaee0b6e365c5c..d9ae62032e3cf1025dd5b2867933ffa2aed18c45 100644 (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