From nobody Sat Dec 16 04:18:38 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SsXrt3THlz54X8S; Sat, 16 Dec 2023 04:18:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SsXrt1zG9z3Bwh; Sat, 16 Dec 2023 04:18:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702700318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Aqkegb0Ct0LqZU6F00ErI81nda1v75gn5m8UM1PRFWw=; b=BH8a9QHrZp66XKezhtLXMk6eHyBtnG+vAR0TgfW9UrpDcV+H+gjLJHkvaa2ppJBIb+6OEp iH+xjSU6Gy9DkeTfyNb6W2GY/I1m9kQVmU6brtFI7S+kofKE7cs06a4cz8rt4hBcN4Ii2h /AJjPh1Ei8yF9sVYaHEkzj3FqqiMDg47HX+zZX3UuWTT2/FIvEbEi9UeWzPq6ESUh+b7XW 8Tm7r9KLrfNqI6hB+y2dAM/vQHcb9y1/geWdDMnSsE0x1Y2S2VteIo+3Q5plttRMZdLlWP +BEKA92BYPQ2vZ/mwRnn2dnVZy2gpsy5oGkSgtzpXKu5ApMKLGCJqYdRTwMygQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702700318; a=rsa-sha256; cv=none; b=MnoRRLwGjzm4JK9Y/EhLG8UEVPlx1pn2KMpinPM6koEXAUw3mYlQRgeTqo29JJPphOzAD8 4GGETxzbnDxB0aLRKSKSzoyxrRsEgCNVgCjKZ/P30mXZwl86S1fPgH2gtC0fus4UfA+twX 5BMz7MkSXrEDeyug+aNEcaowzLG+xPHwrfKrfOTRRz3pZJOOGWW3O4UcvOw+jQcnDThY9Q qG4dn+usVLY3JGF2Gy9/Pg8z3seikeluZzBnMlClKnWiMWdboqAWXrDrkcQB7haGv9Bvby 2NXOFOgNBN3QsR5NBykft2asbZ2DMM9NCUyPBmqYD8hyF3PiHUFwK0boflRr2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702700318; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Aqkegb0Ct0LqZU6F00ErI81nda1v75gn5m8UM1PRFWw=; b=upA0q+ChHjXwj69pdgj9qbdO7bg8j/GTSl//jtmXpI4NN94wbYSaFIcCYVHk9PDYOqrUhj GmPD0+Fg2I/kRJekH4neQ7HocOY3XhrFQ/nRJ3aHmZFQE7P2wNrm4PEcFE3KVbxgRCsdr2 rJnsgMti8dFm2UaOJluuEWNGhS8NKHF0LbJb2NWCI2GVxvRUA6wGaD+WRgPI0x3+OtGMLB rdrAqiC6mfUivQnp81HOOhjg/+1VcjDcB/o3haZDwdrpDihW9O9cCAEIsMel0WiM05jNkD UZBRgjsJnojuhnjZsaGHQeZ+Ldd1ugmAPGTSfY/LkHcQZz6msHoFqHWNBU6RPw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SsXrt14rLzfhp; Sat, 16 Dec 2023 04:18:38 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3BG4Icv0059136; Sat, 16 Dec 2023 04:18:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BG4IcE3059133; Sat, 16 Dec 2023 04:18:38 GMT (envelope-from git) Date: Sat, 16 Dec 2023 04:18:38 GMT Message-Id: <202312160418.3BG4IcE3059133@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 79ca908fded3 - stable/14 - strfmon.c: Use the restrict keyword directly List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 79ca908fded37d25dad76366137bdcbba2bf300c Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=79ca908fded37d25dad76366137bdcbba2bf300c commit 79ca908fded37d25dad76366137bdcbba2bf300c Author: Konstantin Belousov AuthorDate: 2023-12-09 01:21:02 +0000 Commit: Konstantin Belousov CommitDate: 2023-12-16 04:17:51 +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 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;