diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 22:56:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 22:56:22 +0000 |
commit | ebdc23b3c0fde85e80e27a77ae50e9cfe726f368 (patch) | |
tree | b413c8d5c809b3adeb6b4c264d604358abbf219a | |
parent | b8824abce229cd6b2266a23eaeef2d3b49cf09d1 (diff) | |
download | coreutils-ebdc23b3c0fde85e80e27a77ae50e9cfe726f368.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/dircolors.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dircolors.c b/src/dircolors.c index 5d18f098c..ac8582cf5 100644 --- a/src/dircolors.c +++ b/src/dircolors.c @@ -1,5 +1,5 @@ /* dircolors - output commands to set the LS_COLOR environment variable - Copyright (C) 1996-2003 Free Software Foundation, Inc. + Copyright (C) 1996-2004 Free Software Foundation, Inc. Copyright (C) 1994, 1995, 1997, 1998, 1999, 2000 H. Peter Anvin This program is free software; you can redistribute it and/or modify @@ -96,7 +96,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 @@ -121,7 +121,7 @@ For details on the format of these files, run `dircolors --print-database'.\n\ printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } - exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); + exit (status); } /* If the SHELL environment variable is set to `csh' or `tcsh,' |