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 /src/paste.c | |
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.
Diffstat (limited to 'src/paste.c')
-rw-r--r-- | src/paste.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 |