Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Sep 2024 05:02:37 GMT
From:      Zhenlei Huang <zlei@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b6728c3f0b47 - stable/14 - init_main: Sprinkle const qualifiers where appropriate
Message-ID:  <202409020502.48252bkn024115@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=b6728c3f0b47408610373fc2744e98f3178ddf83

commit b6728c3f0b47408610373fc2744e98f3178ddf83
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-08-21 10:01:30 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202409020502.48252bkn024115>