git: 7412517f2947 - main - init_main: Sprinkle const qualifiers where appropriate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 Aug 2024 10:04:11 UTC
The branch main has been updated by zlei: URL: https://cgit.FreeBSD.org/src/commit/?id=7412517f2947342d599e42dd563fd6b3a7656e29 commit 7412517f2947342d599e42dd563fd6b3a7656e29 Author: Zhenlei Huang <zlei@FreeBSD.org> AuthorDate: 2024-08-21 10:01:30 +0000 Commit: Zhenlei Huang <zlei@FreeBSD.org> 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;