aboutsummaryrefslogtreecommitdiffstats
path: root/src/expand-common.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2025-09-17 09:12:23 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2025-09-17 12:20:24 -0700
commitee367bd38daca8e36e4088d11301e52b782597ad (patch)
treea88cd197df4f38f99340915abd542fe1256c6b9f /src/expand-common.c
parentbuild: update gnulib submodule to latest (diff)
downloadcoreutils-ee367bd38daca8e36e4088d11301e52b782597ad.tar.gz
coreutils-ee367bd38daca8e36e4088d11301e52b782597ad.zip
maint: STREQ → streq
Use new Gnulib streq function instead of rolling our own macro. * bootstrap.conf (gnulib_modules): Add stringeq. * src/rm.c (main): Don’t assume streq is a macro that expands to (...), as it is now a function. * src/system.h: * tests/df/no-mtab-status.sh, tests/df/skip-duplicates.sh: (STREQ): Remove. All uses replaced by streq.
Diffstat (limited to 'src/expand-common.c')
-rw-r--r--src/expand-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expand-common.c b/src/expand-common.c
index 366c589cf..ca2ad4d67 100644
--- a/src/expand-common.c
+++ b/src/expand-common.c
@@ -348,7 +348,7 @@ next_file (FILE *fp)
int err = errno;
if (!ferror (fp))
err = 0;
- if (STREQ (prev_file, "-"))
+ if (streq (prev_file, "-"))
clearerr (fp); /* Also clear EOF. */
else if (fclose (fp) != 0)
err = errno;
@@ -361,7 +361,7 @@ next_file (FILE *fp)
while ((file = *file_list++) != nullptr)
{
- if (STREQ (file, "-"))
+ if (streq (file, "-"))
{
have_read_stdin = true;
fp = stdin;