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/head.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/head.c') diff --git a/src/head.c b/src/head.c index 20c2ee031..127099dfc 100644 --- a/src/head.c +++ b/src/head.c @@ -860,7 +860,7 @@ head_file (char const *filename, uintmax_t n_units, bool count_lines, { int fd; bool ok; - bool is_stdin = STREQ (filename, "-"); + bool is_stdin = streq (filename, "-"); if (is_stdin) { -- cgit v1.2.3