From nobody Sat Dec 16 04:19:25 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 4SsXsn3qnSz54WsZ; Sat, 16 Dec 2023 04:19:25 +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 4SsXsn2GBXz3CsQ; Sat, 16 Dec 2023 04:19:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702700365; 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=0MRxuaTh7PeJ6bY+l6xOHYawA8p0yzUmKOrhZbvudng=; b=LRMSntmGOXx99C1rtJ2wPPP9JjX3VW9+QrLb2FVpmGfgahSaEHFrZQjT8smHY4VNg4m+Ge cZPyMdKdCv0jk+R2Hv9bq9P3TdehPRta/O43jLzDR89+3fdx3b4XAHKhX1imkd3MUt95H5 x8AeQCjnoNbdgqfbawEIqZ1XSBFHZTzMiZ/tJYVUyCI92HuNl1mwANBfprPVgNd7EUbzXg U6Y74pyvddLPftJsTbc9dOGJqCCkdNlzxTaMr8BwSWv1C+T26NSeiAWiD58jls7kFyZt/G t8Qm754x9jFmYtSTIZEyKwZqZqd8txDBSPmWE1iS9CJn7fEqaBOmjs0WV4eYrg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702700365; a=rsa-sha256; cv=none; b=s8/vkiPQsAQLADjCVGUzZkoKXwj4dh2I7zll15Jzrrk6yQTpk/So24PaN2F5qlKgNnvTuQ lI2XuOVhmHivdxpmjL3r7/uSuo0LA0f9upLwzrE4ApNEi7VVtso1T2eWHRSKXY/PuTtPo/ uNLCnMw6/BPRvS8Domea52pbjTYEzgGmBy20pCSLFwsza0l9wRsDvhK/+rwDxVCV++B4Z6 x/v6e/JfIHVZj3cI3uSz7P6jLrd/b/PbvF9yP+/COIXrcVOHxiPCGerYoOzkLgVtDYdhd/ hkp6MV6umUvFjvvKvTL/R6We6/1JwqojwOovc7nf+aeckTzSt0UkXPzRXl3gEA== 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=1702700365; 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=0MRxuaTh7PeJ6bY+l6xOHYawA8p0yzUmKOrhZbvudng=; b=cYnTO3ndQpKmWIPr/dNVCVwT7GI2ToOfUDv9nW6XfN3rYHVExAD9bweWaTRXe5nralNdjx jBUrpN69IVJUDG2VwsU3g4AZxtMFA/ExQOjN927Ot55TefDRbyIJQ7d8ojlrzUKpf4jjOr Ce/BSbKdbAz3Unb3BhQKQGgttbH0/p/sbBpZ/gjlgbpJvxpqzt/T4tj4gdLjuUWO/Cud5l Ba8IX/jjPdag//OE54+8rpAXzuY791VyeyRCEf1l/QwHdkqG9BrtDeo6i/yjXeNZLJk72j WTppiRlBpwpzNdm1eAEOLFDTTrdsQQdpaQ9jFf5fEsKsw7UOA4GcNkKN9EKKfg== 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 4SsXsn133zzfcX; Sat, 16 Dec 2023 04:19:25 +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 3BG4JPb8059507; Sat, 16 Dec 2023 04:19:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3BG4JPx3059504; Sat, 16 Dec 2023 04:19:25 GMT (envelope-from git) Date: Sat, 16 Dec 2023 04:19:25 GMT Message-Id: <202312160419.3BG4JPx3059504@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: 47218ed5407a - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 47218ed5407a2edaf29d8ee7f715717d933af2c3 Auto-Submitted: auto-generated The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=47218ed5407a2edaf29d8ee7f715717d933af2c3 commit 47218ed5407a2edaf29d8ee7f715717d933af2c3 Author: Konstantin Belousov AuthorDate: 2023-12-09 01:21:02 +0000 Commit: Konstantin Belousov 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;