git: 803060b21799 - main - i386/spinconsole: Use C99 initializers
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 20 May 2024 04:08:39 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=803060b21799664ba2fd8d9d9890aaaf57421a5f
commit 803060b21799664ba2fd8d9d9890aaaf57421a5f
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-19 20:52:53 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-20 04:05:41 +0000
i386/spinconsole: Use C99 initializers
Sponsored by: Netflix
---
stand/i386/libi386/spinconsole.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/stand/i386/libi386/spinconsole.c b/stand/i386/libi386/spinconsole.c
index 156eaf35e1c0..67561ff03bbd 100644
--- a/stand/i386/libi386/spinconsole.c
+++ b/stand/i386/libi386/spinconsole.c
@@ -47,14 +47,13 @@ static int spinc_ischar(void);
extern struct console *consoles[];
struct console spinconsole = {
- "spinconsole",
- "spin port",
- 0,
- spinc_probe,
- spinc_init,
- spinc_putchar,
- spinc_getchar,
- spinc_ischar
+ .c_name = "spinconsole",
+ .c_desc = "spin port",
+ .c_probe = spinc_probe,
+ .c_init = spinc_init,
+ .c_out = spinc_putchar,
+ .c_in = spinc_getchar,
+ .c_ready = spinc_ischar
};
static struct console *parent = NULL;