From nobody Mon Sep 02 05:02:37 2024 X-Original-To: dev-commits-src-branches@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 4WxxT95FSqz5MSbn; Mon, 02 Sep 2024 05:02:37 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WxxT94MLcz4ttJ; Mon, 2 Sep 2024 05:02:37 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1725253357; 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=PkH5UxA7PpQe4abPLu7zwV1f2TFB3s1f/82kxBsqSbM=; b=BhrPL8RwViEKjqsM6/wJxa5TTRq8gvhqzDgEn+oi5PEOuuPtobINUBSBLflB1CTWscol9f p3pxFD+olqm8eNuONhpEGC6wH//ih09zuxNF/5ES8I20M1WPDf2im9njp2LK+Fq7qnKLul NUro/Y8Ng7GxNrrTTCYNWRg7k9om8EjZ8Mkt361toEsr5eWCJxEQmA4A2JdHsJisUfG48P 9BLyCZuoPJfl/HUa8CBh0X1wDZKcTF5sUTfH9EaTRvTBTLOlQq//+EU5ezuQohVb0umKzk FWCg2amCnkthXhccaC3pRLDq1ANMH4oIXRx33Qc2NqqBnno8IkMo1yC0TMQ9Gw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725253357; a=rsa-sha256; cv=none; b=BQ/k8VXtYz/p9eEVIx2N14qIciIS9JrfocDGiTfZNZuOhkQHFv6Gs3KLga0EQLbX1nv6J5 ehoUWL2F5/zTKTnG2VyzFYIlyxtEpaLy2gbe2jrKdblKAagGopEYq04KlKNxD0MpiBygDa 8YiDMgmRMjxXE7kxqiEMwMaDhdGlhk1PrPOY6YV8DxER4mjisblGvgLyQnMhDFSqucrf1t VNPBkfGcUsnLNMqAf6ZD8Qh246DovkCFaTbFungIwGJTLHwCUIQugGUFLeCa9efzZZjMM/ fxStdkKhdQyMi6smOGx9xOUfL02wsQDyNnU12dV8HVg76vyZ5HbjmOOOsgOWeA== 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=1725253357; 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=PkH5UxA7PpQe4abPLu7zwV1f2TFB3s1f/82kxBsqSbM=; b=MBMKAYWGbVfUhBLyM5TbYo3pbMC6gngNdnN7ghmxuRRRYc113ZWI3xJG33E9ZE4BmwGciA ftJw7YfCSxNWn15SDUa5RjoyT6uZiLsTgRoTExYJ1Nkpid3QWO0lWr2NTgg/3VQCR7FwDb jb8BOyVxGa4oz97yzGZz0WkMoypivwc5RvKXHDo4Lku2qyAI9Zs1q0/hWktfReh7b/Wxn4 1FTU6jEMeAHySUG98OmcAatjIUCj4mZrZhuvrsl2EIapzvEUthM8f7S3oiGrSTbsqDqCkC dv3S+Hlbuc5Xzh8SGuNQFRqH6f+u7wz/UKcWXGwKbnlqZHtn1smMw1urzfvJTg== 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 4WxxT93vjhzyyN; Mon, 2 Sep 2024 05:02:37 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 48252buB024118; Mon, 2 Sep 2024 05:02:37 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48252bkn024115; Mon, 2 Sep 2024 05:02:37 GMT (envelope-from git) Date: Mon, 2 Sep 2024 05:02:37 GMT Message-Id: <202409020502.48252bkn024115@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: b6728c3f0b47 - stable/14 - init_main: Sprinkle const qualifiers where appropriate List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@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: b6728c3f0b47408610373fc2744e98f3178ddf83 Auto-Submitted: auto-generated The branch stable/14 has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=b6728c3f0b47408610373fc2744e98f3178ddf83 commit b6728c3f0b47408610373fc2744e98f3178ddf83 Author: Zhenlei Huang AuthorDate: 2024-08-21 10:01:30 +0000 Commit: Zhenlei Huang CommitDate: 2024-09-02 05:01:39 +0000 init_main: Sprinkle const qualifiers where appropriate No functional change intended. MFC after: 1 week (cherry picked from commit 7412517f2947342d599e42dd563fd6b3a7656e29) --- sys/kern/init_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 8d650c7ea084..917c3ea07baf 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -349,13 +349,13 @@ mi_startup(void) } static void -print_caddr_t(void *data) +print_caddr_t(const void *data) { - printf("%s", (char *)data); + printf("%s", (const char *)data); } static void -print_version(void *data __unused) +print_version(const void *data __unused) { int len;