git: 85e34c0f6702 - stable/13 - strfmon: Remove XXX marks
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Nov 2022 00:31:10 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=85e34c0f6702acd6623ff606fef0c49d9683553c commit 85e34c0f6702acd6623ff606fef0c49d9683553c Author: Jose Luis Duran <jlduran@gmail.com> AuthorDate: 2022-10-28 09:20:33 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-11-05 00:30:39 +0000 strfmon: Remove XXX marks (cherry picked from commit f0a15aafcb863f796e2a7f94d0fd8a857fb56103) --- lib/libc/stdlib/strfmon.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/stdlib/strfmon.c b/lib/libc/stdlib/strfmon.c index dd1a69dd6d7a..b50d08400cbb 100644 --- a/lib/libc/stdlib/strfmon.c +++ b/lib/libc/stdlib/strfmon.c @@ -324,7 +324,7 @@ vstrfmon_l(char * __restrict s, size_t maxsize, locale_t loc, if (cs_precedes == 1) { if (sign_posn == 1 || sign_posn == 3) { PRINTS(signstr); - if (sep_by_space == 2) /* XXX: ? */ + if (sep_by_space == 2) PRINT(' '); } @@ -363,7 +363,7 @@ vstrfmon_l(char * __restrict s, size_t maxsize, locale_t loc, || sign_posn == 2 || sign_posn == 4))) PRINT(space_char); - PRINTS(currency_symbol); /* XXX: len */ + PRINTS(currency_symbol); if (sign_posn == 4) { if (sep_by_space == 2) PRINT(' '); @@ -597,7 +597,7 @@ __format_grouped_double(double value, int *flags, } if ((*flags & NEED_GROUPING) && - thousands_sep_size > 0 && /* XXX: need investigation */ + thousands_sep_size > 0 && *grouping != CHAR_MAX && *grouping > 0) { while (avalue_size > (int)*grouping) {