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/touch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/touch.c') diff --git a/src/touch.c b/src/touch.c index 2b54808b7..bc6b23840 100644 --- a/src/touch.c +++ b/src/touch.c @@ -124,7 +124,7 @@ touch (char const *file) int open_errno = 0; struct timespec const *t = newtime; - if (STREQ (file, "-")) + if (streq (file, "-")) fd = STDOUT_FILENO; else if (! (no_create || no_dereference)) { -- cgit v1.2.3