aboutsummaryrefslogtreecommitdiffstats
path: root/src/set-fields.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/set-fields.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/set-fields.c')
-rw-r--r--src/set-fields.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/set-fields.c b/src/set-fields.c
index 31547e4e9..14f7e4d65 100644
--- a/src/set-fields.c
+++ b/src/set-fields.c
@@ -147,7 +147,7 @@ set_fields (char const *fieldstr, unsigned int options)
/* Collect and store in RP the range end points. */
/* Special case: '--field=-' means all fields, emulate '--field=1-' . */
- if ((options & SETFLD_ALLOW_DASH) && STREQ (fieldstr,"-"))
+ if ((options & SETFLD_ALLOW_DASH) && streq (fieldstr,"-"))
{
value = 1;
lhs_specified = true;