From nobody Tue May 28 04:22:02 2024 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 4VpK966MTRz5LXHw; Tue, 28 May 2024 04:22:02 +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 4VpK965d0xz4YXG; Tue, 28 May 2024 04:22:02 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716870122; 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=UELdCtdDu3FOiWCSoQbIm/m1RP6cSXk6hcXNhK+o0Po=; b=IaDgmZTZ/D8EbMG2E7ErORgOlRUNRBW8uAuFj9OyE4fuKLWBkLjI5PuplXMpzlooVrfaHg ENHKAdddpqQqlP6nUgbcu+KZFzvGR4Ky8lhb8sQ0KhO5v+d1aGnZZXbZrqc7/FwwQgfTZu X+3FFKq65JWUO+PVnAMwB2o8nfndwvcver6ZMWAHznL2F8BnNRHYwlXYAFbxaoIEOZuloa 2uZSSzDtyyuoAsWXDJXwTa/GJhOy5EzIcUm6/hbZlBSR7TzELxzD6wsnMIFm71ewxjWsSj x5tulrm3D6c/DqArxhX3P7QDtlVktAeXcco7F0yZGPL3xF6djDEfd826yOUtLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716870122; a=rsa-sha256; cv=none; b=SluO/1pW3dLY3nol/jk9xi85i2O4UAVrVf0Wr/a0aB0NLkgahl/A96lbXCOM4ZHIoROB/Z qtQWzQ6GSaSSdZWmylHxeXk0Kdjw2bWxLvqGtweRR4F3AM/dnSBBcQOlXC+am9vDNXludg qL2OrMwoCnacp3QZrH7hlvnHrL0+s1XBypJdnCpypJ/dSmjC0gieANNo0oC91w90bp87KK lebxYdblhdCbes6uvV1rafvs+vDph5wRh7bEH4ehXeCw+dii/qhUIZTedFV+lhsDoel0OT EiH1gVGZHdJ8ULQx6VWZIuMFHIrNOYHx6B6Usbv5UumXuerp7WUmOIc/gYlenQ== 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=1716870122; 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=UELdCtdDu3FOiWCSoQbIm/m1RP6cSXk6hcXNhK+o0Po=; b=BWgXGz9/75Ner/yXwikQ8dqQnjA9JoFQHB6IRF5aM4Vly+9Fb8BfDE2tzRhT3yGewlZw+i ODyfotO2Kg19WPzFiIJ/ExHCQ58aSeRF+4D1MtbbmtWV0GPMsPKSVKiODjyJynI0nYAwLf /AtVXyinIZgAB0yI+7IKXUYVLGB9qJHJdY/sBK46aWKzbmuulFH2u48c8Xg6m3RI++bKZO DexawGrBit5ffmx2UL1se5oSgz2viWULiARI30VWMBNASTdxlBOqS0SaH9jdx8sHRQ/mZl WwjKBowpcrDl8Rdgo74ZIy+4VtM5nS2LptOJbVzr6bITX05cx7fY4JVfxOBq0Q== 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 4VpK965Dscz1Cfy; Tue, 28 May 2024 04:22:02 +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 44S4M2sc015183; Tue, 28 May 2024 04:22:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44S4M2CK015180; Tue, 28 May 2024 04:22:02 GMT (envelope-from git) Date: Tue, 28 May 2024 04:22:02 GMT Message-Id: <202405280422.44S4M2CK015180@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Zhenlei Huang Subject: git: 5fd1902b0c76 - stable/14 - compat_freebsd4: Add const qualifier to the local variable s inside function freebsd4_uname() 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: zlei X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 5fd1902b0c768fa43d3d7eebf7efd0957d5e144f Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=5fd1902b0c768fa43d3d7eebf7efd0957d5e144f commit 5fd1902b0c768fa43d3d7eebf7efd0957d5e144f Author: Zhenlei Huang AuthorDate: 2024-05-28 04:21:20 +0000 Commit: Zhenlei Huang CommitDate: 2024-05-28 04:21:20 +0000 compat_freebsd4: Add const qualifier to the local variable s inside function freebsd4_uname() This local variable s is for iterating characters of global variable `version`. The content of `version` is not going to be altered by function freebsd4_uname(). MFC after: 1 week (cherry picked from commit 92f2a4c820fea9efcb6ee6a7029495c8152958c1) --- sys/kern/kern_xxx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 66d99edb7da1..d6687fae0caf 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -318,7 +318,8 @@ freebsd4_uname(struct thread *td, struct freebsd4_uname_args *uap) { int name[2], error; size_t len; - char *s, *us; + const char *s; + char *us; name[0] = CTL_KERN; name[1] = KERN_OSTYPE;