git: 86e2bcbf47fb - main - strfmon.c: Use the restrict keyword directly

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Sun, 10 Dec 2023 21:29:57 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=86e2bcbf47fb4c8dbd799f2f21c0ed338b2e8f1b

commit 86e2bcbf47fb4c8dbd799f2f21c0ed338b2e8f1b
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2023-12-09 01:21:02 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2023-12-10 21:28:25 +0000

    strfmon.c: Use the restrict keyword directly
    
    libc sources assume C99 or even C11 compiler already, unlike headers.
    There is no reason to obfuscate the basic C constructs.
    
    Sponsored by:   The FreeBSD Foundation
    MFC after:      1 week
---
 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 4b0389345eb6..68a36a6d5567 100644
--- a/lib/libc/stdlib/strfmon.c
+++ b/lib/libc/stdlib/strfmon.c
@@ -640,7 +640,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;
@@ -653,8 +653,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;