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/numfmt.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/numfmt.c')
| -rw-r--r-- | src/numfmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/numfmt.c b/src/numfmt.c index 3fc027c7e..4f72facb9 100644 --- a/src/numfmt.c +++ b/src/numfmt.c @@ -1279,7 +1279,7 @@ process_suffixed_number (char *text, long double *result, { char *possible_suffix = text + strlen (text) - strlen (suffix); - if (STREQ (suffix, possible_suffix)) + if (streq (suffix, possible_suffix)) { /* trim suffix, ONLY if it's at the end of the text. */ *possible_suffix = '\0'; |
