diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 22:48:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 22:48:06 +0000 |
commit | d5f068d892c3961e86695fa507196f1e5792e24f (patch) | |
tree | 9b01d3b2baaac1827aa6cbd7c8fe30104b2b01e5 | |
parent | 918fbb381068a60473d85f1464876afa626e6603 (diff) | |
download | coreutils-d5f068d892c3961e86695fa507196f1e5792e24f.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/cksum.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cksum.c b/src/cksum.c index 9253d9b16..fed5d1fc5 100644 --- a/src/cksum.c +++ b/src/cksum.c @@ -1,5 +1,5 @@ /* cksum -- calculate and print POSIX checksums and sizes of files - 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 @@ -273,7 +273,7 @@ cksum (const char *file, int print_name) void usage (int status) { - if (status != 0) + if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else @@ -291,7 +291,7 @@ Print CRC checksum and byte counts of each FILE.\n\ fputs (VERSION_OPTION_DESCRIPTION, stdout); printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } - exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); + exit (status); } int |