]> 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 23:50:20 +0000 (23:50 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 21 Jan 2004 23:50:20 +0000 (23:50 +0000)
src/who.c
src/whoami.c
src/yes.c

index 46cb71c9e3c6ed20a2900ded54344e5233ede4fb..fa3e2110453195c2bd8335e2f4cb6f20779260a3 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -1,5 +1,5 @@
 /* GNU's who.
-   Copyright (C) 1992-2003 Free Software Foundation, Inc.
+   Copyright (C) 1992-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
@@ -612,7 +612,7 @@ who (const char *filename)
 void
 usage (int status)
 {
-  if (status != 0)
+  if (status != EXIT_SUCCESS)
     fprintf (stderr, _("Try `%s --help' for more information.\n"),
             program_name);
   else
index 8b4318d4e2ff7410c15d61a7f12acac2ad0de669..f666a677ae4df58b63400eb239de1ae6ed95fae7 100644 (file)
@@ -1,5 +1,7 @@
 /* whoami -- print effective userid
-   Copyright (C) 89,90, 1991-1997, 1999-2002 Free Software Foundation, Inc.
+
+   Copyright (C) 89,90, 1991-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
@@ -43,7 +45,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 e58d63fbaf2bedf569d360aa2f548378ca2bd569..f6f26e5a6de1ecc79a3121fa169828d1f080ef53 100644 (file)
--- a/src/yes.c
+++ b/src/yes.c
@@ -1,5 +1,5 @@
 /* yes - output a string repeatedly until killed
-   Copyright (C) 1991-1997, 1999-2003 Free Software Foundation, Inc.
+   Copyright (C) 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
@@ -38,7 +38,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