diff options
author | Jim Meyering <jim@meyering.net> | 2004-06-01 12:50:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2004-06-01 12:50:09 +0000 |
commit | 3fb9e9c8357a44c3f3ab0be41ade70773d3152d6 (patch) | |
tree | 1ea977db91ba6a73485619970e23ffc9a821f79d /src | |
parent | c35afe751ffc1cb67bd9e787d125d4106cef864e (diff) | |
download | coreutils-3fb9e9c8357a44c3f3ab0be41ade70773d3152d6.tar.xz |
(main, sort_buffer_size): Use STREQ (a, b) rather than `strcmp (a, b) == 0'
Diffstat (limited to 'src')
-rw-r--r-- | src/sort.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sort.c b/src/sort.c index 6fcfc69d7..1761ad335 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 { |