From nobody Wed Aug 21 10:04:11 2024 X-Original-To: dev-commits-src-main@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 4Wphkg3N9Cz5Tbnp; Wed, 21 Aug 2024 10:04:11 +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 4Wphkg2vxbz4jFR; Wed, 21 Aug 2024 10:04:11 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724234651; 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=vkzZN03LlTaRrBbNa98p4iAQadU32N3r6djy0XOfwNw=; b=U0lFuXNsp1MITEtaeYLiCMzqTNsNiUhge+bsV+zYUnjeKg8a98bCEU3sMs+c6a8OsdJ16t 6U/nT+v3yNkgnPcaL0DZ1Ss/gyWTwuCFSdZFFouoGNse+denmwAqW0bjn2TzuvNH7cI6j4 /1PPoTo+nFvdmhaWE3ReIST3SIzucNAlH43zXlUlfPJNuTiwQi+71iawfkVqM4mKarCOK/ dy0g1vDe2jAzhLLQxo6r6Xz8UAKNl1c/ufp9WASWVDeO3kWozccTAo6jcng1iJgZfrCziu 5iVL1t8FWMUm857ts2ltuXt987Ab0scNXgTvFwLuGuO+LUUtlzRgd7H6sEUPLg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724234651; a=rsa-sha256; cv=none; b=dltxB95EfmbgDGXGLk6FXHodQaevw8Vcvc31cLWwtV5AakQMjhk24vPoE9jnJA5Ih7Srgw tob7ING51JG19nGRZVn0420OiraIuXUEF7FPQkLaVEfienOj/SsFsdcyJ7WBvtzId8WpTi tzspqNfxd8yAKVOEUGYwvM+gnvOjKxb2dgPJ28pCls4/3i0W3BlEIkojNEgk5R0Zkkw2CR gBwBTGA1skwqv+gd8jexwVHfmiqNqrIsT57Xn/D3oO9v59emTddcmIPjohJyePuhUbNSql PAJPOeMz+zEt4uMMu4ij6MGUPdpHOjcFnvxXSHkqIl6cNcvfqD8OiGXXiqY5sg== 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=1724234651; 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=vkzZN03LlTaRrBbNa98p4iAQadU32N3r6djy0XOfwNw=; b=x4D2GewCZ5KhsZyH2r2N93FAWaihsSXJCSpUWiq8SrqYI7JPugpij18ZRvwQ8CqxosI3Gv PmgCSt4wTC7VoWZxD3TXR3X2B522e9p6ECs7jsiXkDNtT7NCZGo5TKYb1KODVEN5AR/X5+ JbaiIYRgoKpIXr4jF8e+QbDbxMgrdf3d9n8mWZ914y0KfuWkguuslzyEioi+FCaXUS80B7 ZFsM8LVVPbWwsKccLZ079Gh1MbJ+gx6PNFowSV+39iyMCwaOVDn0GDuYafnPsGo91u3/uR LbQDogInSrECTDAFoMzJept3hjGOOeSo4qJAf4fuNa1Wk1XUJYLzK3wXQ1sSIg== 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 4Wphkg2WDWzg0X; Wed, 21 Aug 2024 10:04:11 +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 47LA4Bn4026868; Wed, 21 Aug 2024 10:04:11 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47LA4Bm9026865; Wed, 21 Aug 2024 10:04:11 GMT (envelope-from git) Date: Wed, 21 Aug 2024 10:04:11 GMT Message-Id: <202408211004.47LA4Bm9026865@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Zhenlei Huang Subject: git: 7412517f2947 - main - init_main: Sprinkle const qualifiers where appropriate List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 7412517f2947342d599e42dd563fd6b3a7656e29 Auto-Submitted: auto-generated The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=7412517f2947342d599e42dd563fd6b3a7656e29 commit 7412517f2947342d599e42dd563fd6b3a7656e29 Author: Zhenlei Huang AuthorDate: 2024-08-21 10:01:30 +0000 Commit: Zhenlei Huang CommitDate: 2024-08-21 10:01:30 +0000 init_main: Sprinkle const qualifiers where appropriate No functional change intended. MFC after: 1 week --- 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 7386a0729835..9d2663015027 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -347,13 +347,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;