boot: pass in args as const
authorWarner Losh <imp@FreeBSD.org>
Wed, 7 Dec 2022 00:36:29 +0000 (17:36 -0700)
committerWarner Losh <imp@FreeBSD.org>
Wed, 7 Dec 2022 18:00:54 +0000 (11:00 -0700)
commited56dcfc6b1f4de2a5ae4f0f86dff5dfe0a5541c
tree023eaea0f2a2e3a62178381b155b9b6e0b10e796
parent482380c6f8252228a172d82e74ef0964f8fc258b
boot: pass in args as const

Copy the arg that sets a variable to maximize the reuse of this
routine. There are places we call it from that are const char * and it
might not be safe to cast that away.

Sponsored by: Netflix
sys/kern/subr_boot.c
sys/sys/boot.h