From: Jim Meyering Date: Thu, 22 Jan 2004 21:04:26 +0000 (+0000) Subject: (usage): Use EXIT_SUCCESS, not 0, for clarity. X-Git-Tag: v5.1.2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8d43c94371a1ff0834b6103e35dad05688d7cce;p=thirdparty%2Fcoreutils.git (usage): Use EXIT_SUCCESS, not 0, for clarity. (err): Now a boolean int, not a counter, so that we don't have to worry about int overflow. All uses changed. --- diff --git a/src/touch.c b/src/touch.c index 21b29e50b7..728f62c3fd 100644 --- a/src/touch.c +++ b/src/touch.c @@ -240,7 +240,7 @@ touch (const char *file) void usage (int status) { - if (status != 0) + if (status != EXIT_SUCCESS) fprintf (stderr, _("Try `%s --help' for more information.\n"), program_name); else @@ -433,7 +433,7 @@ main (int argc, char **argv) } for (; optind < argc; ++optind) - err += touch (argv[optind]); + err |= touch (argv[optind]); - exit (err != 0); + exit (err == 0 ? EXIT_SUCCESS : EXIT_FAILURE); }