From: Jim Meyering Date: Tue, 1 Jun 2004 12:50:09 +0000 (+0000) Subject: (main, sort_buffer_size): Use STREQ (a, b) rather than `strcmp (a, b) == 0' X-Git-Tag: v5.3.0~1446 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fb9e9c8357a44c3f3ab0be41ade70773d3152d6;p=thirdparty%2Fcoreutils.git (main, sort_buffer_size): Use STREQ (a, b) rather than `strcmp (a, b) == 0' --- diff --git a/src/sort.c b/src/sort.c index 6fcfc69d7d..1761ad335e 100644 --- a/src/sort.c +++ b/src/sort.c @@ -708,7 +708,7 @@ sort_buffer_size (FILE *const *fps, int nfps, size_t worst_case; if ((i < nfps ? fstat (fileno (fps[i]), &st) - : strcmp (files[i], "-") == 0 ? fstat (STDIN_FILENO, &st) + : STREQ (files[i], "-") ? fstat (STDIN_FILENO, &st) : stat (files[i], &st)) != 0) die (_("stat failed"), files[i]); @@ -2428,7 +2428,7 @@ main (int argc, char **argv) error (SORT_FAILURE, 0, _("empty tab")); if (optarg[1]) { - if (strcmp (optarg, "\\0") == 0) + if (STREQ (optarg, "\\0")) newtab = '\0'; else {