git: 47218ed5407a - stable/13 - strfmon.c: Use the restrict keyword directly
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 16 Dec 2023 04:19:25 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=47218ed5407a2edaf29d8ee7f715717d933af2c3 commit 47218ed5407a2edaf29d8ee7f715717d933af2c3 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-12-09 01:21:02 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-12-16 04:18:48 +0000 strfmon.c: Use the restrict keyword directly (cherry picked from commit 86e2bcbf47fb4c8dbd799f2f21c0ed338b2e8f1b) --- 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 1c9eb3f45d74..d3efc9080c09 100644 --- a/lib/libc/stdlib/strfmon.c +++ b/lib/libc/stdlib/strfmon.c @@ -641,7 +641,7 @@ __format_grouped_double(double value, int *flags, int left_prec, int right_prec, } ssize_t -strfmon(char *__restrict s, size_t maxsize, const char *__restrict format, ...) +strfmon(char *restrict s, size_t maxsize, const char *restrict format, ...) { ssize_t ret; va_list ap; @@ -654,8 +654,8 @@ strfmon(char *__restrict s, size_t maxsize, const char *__restrict format, ...) } ssize_t -strfmon_l(char *__restrict s, size_t maxsize, locale_t loc, - const char *__restrict format, ...) +strfmon_l(char *restrict s, size_t maxsize, locale_t loc, + const char *restrict format, ...) { ssize_t ret; va_list ap;