aboutsummaryrefslogtreecommitdiffstats
path: root/src/split.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/split.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/split.c')
-rw-r--r--src/split.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/split.c b/src/split.c
index e5f6947f8..e58e0db54 100644
--- a/src/split.c
+++ b/src/split.c
@@ -1452,7 +1452,7 @@ main (int argc, char **argv)
error (EXIT_FAILURE, 0, _("empty record separator"));
if (optarg[1])
{
- if (STREQ (optarg, "\\0"))
+ if (streq (optarg, "\\0"))
neweol = '\0';
else
{
@@ -1605,7 +1605,7 @@ main (int argc, char **argv)
}
/* Open the input file. */
- if (! STREQ (infile, "-")
+ if (! streq (infile, "-")
&& fd_reopen (STDIN_FILENO, infile, O_RDONLY, 0) < 0)
error (EXIT_FAILURE, errno, _("cannot open %s for reading"),
quoteaf (infile));