mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-24 09:13:37 +01:00
userboot: Use C99 Initializers for each of the consoles here
Sponsored by: Netflix
This commit is contained in:
parent
1f180d0a40
commit
125b181674
@ -42,14 +42,13 @@ static int userboot_cons_getchar(void);
|
||||
static int userboot_cons_poll(void);
|
||||
|
||||
struct console userboot_console = {
|
||||
"userboot",
|
||||
"userboot",
|
||||
0,
|
||||
userboot_cons_probe,
|
||||
userboot_cons_init,
|
||||
userboot_cons_putchar,
|
||||
userboot_cons_getchar,
|
||||
userboot_cons_poll,
|
||||
.c_name = "userboot",
|
||||
.c_desc = "userboot",
|
||||
.c_probe = userboot_cons_probe,
|
||||
.c_init = userboot_cons_init,
|
||||
.c_out = userboot_cons_putchar,
|
||||
.c_in = userboot_cons_getchar,
|
||||
.c_ready = userboot_cons_poll,
|
||||
};
|
||||
|
||||
/*
|
||||
@ -57,14 +56,13 @@ struct console userboot_console = {
|
||||
* console to comconsole without resulting in an error
|
||||
*/
|
||||
struct console userboot_comconsole = {
|
||||
"comconsole",
|
||||
"comconsole",
|
||||
0,
|
||||
userboot_comcons_probe,
|
||||
userboot_comcons_init,
|
||||
userboot_cons_putchar,
|
||||
userboot_cons_getchar,
|
||||
userboot_cons_poll,
|
||||
.c_name = "comconsole",
|
||||
.c_desc = "comconsole",
|
||||
.c_probe = userboot_comcons_probe,
|
||||
.c_init = userboot_comcons_init,
|
||||
.c_out = userboot_cons_putchar,
|
||||
.c_in = userboot_cons_getchar,
|
||||
.c_ready = userboot_cons_poll,
|
||||
};
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user