]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(main): Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'.
authorJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 13:00:28 +0000 (13:00 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 1 Jun 2004 13:00:28 +0000 (13:00 +0000)
src/sort.c

index 1761ad335e181ec072103f65806cdab7515f3092..522b799bc47950d4340f0f86da3cfb26892bb77d 100644 (file)
@@ -2408,7 +2408,7 @@ main (int argc, char **argv)
          break;
 
        case 'o':
-         if (outfile != minus && strcmp (outfile, optarg) != 0)
+         if (outfile != minus && !STREQ (outfile, optarg))
            error (SORT_FAILURE, 0, _("multiple output files specified"));
          outfile = optarg;
          break;