git: b6728c3f0b47 - stable/14 - init_main: Sprinkle const qualifiers where appropriate

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 02 Sep 2024 05:02:37 UTC
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;