]> 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:37:54 +0000 (23:37 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 21 Jan 2004 23:37:54 +0000 (23:37 +0000)
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.

src/od.c
src/paste.c

index 5dd9d9f4d6cae4aec8e73ca694ed1da326bd7844..00b8f993988e54ba8732772dbb208b2681da624b 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -1,5 +1,5 @@
 /* od -- dump files in octal and other formats
-   Copyright (C) 92, 1995-2003 Free Software Foundation, Inc.
+   Copyright (C) 92, 1995-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
@@ -278,7 +278,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
@@ -368,7 +368,7 @@ implies 32.  By default, od uses -A o -t d2 -w 16.\n\
 "), stdout);
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
-  exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+  exit (status);
 }
 
 /* Compute the greatest common denominator of U and V
index caf23d6ef3f5f5e88dde6936abd8df4fc6dc4545..ccd0e8baf51685009ea702e9bafdc5ed454240b6 100644 (file)
@@ -1,5 +1,6 @@
 /* paste - merge lines of files
-   Copyright (C) 1984, 1997-2003 by David M. Ihnat
+   Copyright (C) 1997-2004 Free Software Foundation, Inc.
+   Copyright (C) 1984 David M. Ihnat
 
    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
@@ -387,7 +388,7 @@ paste_serial (size_t nfiles, char **fnamptr)
 void
 usage (int status)
 {
-  if (status != 0)
+  if (status != EXIT_SUCCESS)
     fprintf (stderr, _("Try `%s --help' for more information.\n"),
             program_name);
   else
@@ -414,7 +415,7 @@ Mandatory arguments to long options are mandatory for short options too.\n\
       /* FIXME: add a couple of examples.  */
       printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT);
     }
-  exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE);
+  exit (status);
 }
 
 int