git: f989ebd4dea2 - main - kboot: Use C99 initialiers for hostconsole.

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 20 May 2024 04:08:37 UTC
The branch main has been updated by imp:

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

commit f989ebd4dea2ad45f3dd491d86f821a524a0360f
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-19 20:47:20 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-20 04:05:41 +0000

    kboot: Use C99 initialiers for hostconsole.
    
    Sponsored by:           Netflix
---
 stand/kboot/kboot/hostcons.c | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

diff --git a/stand/kboot/kboot/hostcons.c b/stand/kboot/kboot/hostcons.c
index 114188adcff2..9c09a2721891 100644
--- a/stand/kboot/kboot/hostcons.c
+++ b/stand/kboot/kboot/hostcons.c
@@ -35,14 +35,13 @@ static int hostcons_getchar(void);
 static int hostcons_poll(void);
 
 struct console hostconsole = {
-	"host",
-	"Host Console",
-	0,
-	hostcons_probe,
-	hostcons_init,
-	hostcons_putchar,
-	hostcons_getchar,
-	hostcons_poll,
+	.c_name = "host",
+	.c_desc = "Host Console",
+	.c_probe = hostcons_probe,
+	.c_init = hostcons_init,
+	.c_out = hostcons_putchar,
+	.c_in = hostcons_getchar,
+	.c_ready = hostcons_poll,
 };
 
 static struct host_termios old_settings;