From ee367bd38daca8e36e4088d11301e52b782597ad Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 17 Sep 2025 09:12:23 -0700 Subject: maint: STREQ → streq MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/paste.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/paste.c') diff --git a/src/paste.c b/src/paste.c index 10d142436..d2c5c2d42 100644 --- a/src/paste.c +++ b/src/paste.c @@ -191,7 +191,7 @@ paste_parallel (size_t nfiles, char **fnamptr) for (files_open = 0; files_open < nfiles; ++files_open) { - if (STREQ (fnamptr[files_open], "-")) + if (streq (fnamptr[files_open], "-")) { have_read_stdin = true; fileptr[files_open] = stdin; @@ -343,7 +343,7 @@ paste_serial (size_t nfiles, char **fnamptr) for (; nfiles; nfiles--, fnamptr++) { int saved_errno; - bool is_stdin = STREQ (*fnamptr, "-"); + bool is_stdin = streq (*fnamptr, "-"); if (is_stdin) { have_read_stdin = true; -- cgit v1.2.3