diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 23:37:54 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 23:37:54 +0000 |
commit | c979cdc1e32dd94a8da76168ad82acfc61be9273 (patch) | |
tree | b5e97341414d11ac0ae592898a9d35296f7f9b5e | |
parent | cdc257accd12df8ba48b34c9676509ec03326166 (diff) | |
download | coreutils-c979cdc1e32dd94a8da76168ad82acfc61be9273.tar.xz |
(usage): Use EXIT_SUCCESS, not 0, for clarity.
(usage): Don't bother normalizing exit status
since the arg is already the correct exit status now.
-rw-r--r-- | src/od.c | 6 | ||||
-rw-r--r-- | src/paste.c | 7 |
2 files changed, 7 insertions, 6 deletions
@@ -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 diff --git a/src/paste.c b/src/paste.c index caf23d6ef..ccd0e8baf 100644 --- a/src/paste.c +++ b/src/paste.c @@ -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 |