git: 5863982b3d02 - stable/13 - init_main: Sprinkle const qualifiers where appropriate

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Mon, 02 Sep 2024 05:04:10 UTC
The branch stable/13 has been updated by zlei:

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

commit 5863982b3d0294beb4edf843f8733a1c4bf13296
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:03:41 +0000

    init_main: Sprinkle const qualifiers where appropriate
    
    No functional change intended.
    
    MFC after:      1 week
    
    (cherry picked from commit 7412517f2947342d599e42dd563fd6b3a7656e29)
    (cherry picked from commit b6728c3f0b47408610373fc2744e98f3178ddf83)
---
 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 1a8269b8b367..d2c87cf5b777 100644
--- a/sys/kern/init_main.c
+++ b/sys/kern/init_main.c
@@ -344,13 +344,13 @@ restart:
 }
 
 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;