diff options
author | Jim Meyering <jim@meyering.net> | 2004-01-21 23:21:17 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-01-21 23:21:17 +0000 |
commit | 6673927ff076cb11d329b5e546aad4796a68953d (patch) | |
tree | 655b6b13fa15e8ff338d17af0c880896fa8d88c4 /src | |
parent | c399132b6eb0263d1ca79f1ced201b43b2886424 (diff) | |
download | coreutils-6673927ff076cb11d329b5e546aad4796a68953d.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.
(main): Use int, not size_t, to store boolean int.
Diffstat (limited to 'src')
-rw-r--r-- | src/md5sum.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/md5sum.c b/src/md5sum.c index d70ed4c7c..561f2a5b2 100644 --- a/src/md5sum.c +++ b/src/md5sum.c @@ -1,5 +1,5 @@ /* Compute MD5 or SHA1 checksum of files or strings - Copyright (C) 1995-2003 Free Software Foundation, Inc. + Copyright (C) 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 @@ -116,7 +116,7 @@ static const struct option 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 @@ -156,7 +156,7 @@ text), and name for each FILE.\n"), printf (_("\nReport bugs to <%s>.\n"), PACKAGE_BUGREPORT); } - exit (status == 0 ? EXIT_SUCCESS : EXIT_FAILURE); + exit (status); } #define ISWHITE(c) ((c) == ' ' || (c) == '\t') @@ -546,7 +546,7 @@ main (int argc, char **argv) int opt; char **string = NULL; size_t n_strings = 0; - size_t err = 0; + int err = 0; int file_type_specified = 0; #if O_BINARY |