diff options
| author | Paul Eggert <eggert@cs.ucla.edu> | 2025-09-17 09:12:23 -0700 |
|---|---|---|
| committer | Paul Eggert <eggert@cs.ucla.edu> | 2025-09-17 12:20:24 -0700 |
| commit | ee367bd38daca8e36e4088d11301e52b782597ad (patch) | |
| tree | a88cd197df4f38f99340915abd542fe1256c6b9f /src/expr.c | |
| parent | build: update gnulib submodule to latest (diff) | |
| download | coreutils-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/expr.c')
| -rw-r--r-- | src/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/expr.c b/src/expr.c index cd87763df..17a1ddd29 100644 --- a/src/expr.c +++ b/src/expr.c @@ -322,7 +322,7 @@ main (int argc, char **argv) /* The above handles --help and --version. Since there is no other invocation of getopt, handle '--' here. */ - if (1 < argc && STREQ (argv[1], "--")) + if (1 < argc && streq (argv[1], "--")) { --argc; ++argv; @@ -522,7 +522,7 @@ nextarg (char const *str) return false; else { - bool r = STREQ (*args, str); + bool r = streq (*args, str); args += r; return r; } |
