]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main, sort_buffer_size): Use STREQ (a, b) rather than `strcmp (a, b) == 0'
authorJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 12:50:09 +0000 (12:50 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 12:50:09 +0000 (12:50 +0000)
src/sort.c

index 6fcfc69d7da03f5c76aea605bb42ad5f0e59be56..1761ad335e181ec072103f65806cdab7515f3092 100644 (file)
@@ -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
                  {