loader: libi386/comconsole.c cstyle cleanup
Only cstyle, no functional changes.
This commit is contained in:
parent
183b6fead8
commit
0060947db1
@ -67,14 +67,14 @@ static int comc_port = COMPORT;
|
||||
static uint32_t comc_locator;
|
||||
|
||||
struct console comconsole = {
|
||||
"comconsole",
|
||||
"serial port",
|
||||
0,
|
||||
comc_probe,
|
||||
comc_init,
|
||||
comc_putchar,
|
||||
comc_getchar,
|
||||
comc_ischar
|
||||
.c_name = "comconsole",
|
||||
.c_desc = "serial port",
|
||||
.c_flags = 0,
|
||||
.c_probe = comc_probe,
|
||||
.c_init = comc_init,
|
||||
.c_out = comc_putchar,
|
||||
.c_in = comc_getchar,
|
||||
.c_ready = comc_ischar
|
||||
};
|
||||
|
||||
static void
|
||||
@ -106,8 +106,8 @@ comc_probe(struct console *cp)
|
||||
|
||||
sprintf(intbuf, "%d", comc_curspeed);
|
||||
unsetenv("comconsole_speed");
|
||||
env_setenv("comconsole_speed", EV_VOLATILE, intbuf, comc_speed_set,
|
||||
env_nounset);
|
||||
env_setenv("comconsole_speed", EV_VOLATILE, intbuf,
|
||||
comc_speed_set, env_nounset);
|
||||
|
||||
env = getenv("comconsole_port");
|
||||
if (env != NULL) {
|
||||
@ -118,8 +118,8 @@ comc_probe(struct console *cp)
|
||||
|
||||
sprintf(intbuf, "%d", comc_port);
|
||||
unsetenv("comconsole_port");
|
||||
env_setenv("comconsole_port", EV_VOLATILE, intbuf, comc_port_set,
|
||||
env_nounset);
|
||||
env_setenv("comconsole_port", EV_VOLATILE, intbuf,
|
||||
comc_port_set, env_nounset);
|
||||
|
||||
env = getenv("comconsole_pcidev");
|
||||
if (env != NULL) {
|
||||
@ -129,8 +129,8 @@ comc_probe(struct console *cp)
|
||||
}
|
||||
|
||||
unsetenv("comconsole_pcidev");
|
||||
env_setenv("comconsole_pcidev", EV_VOLATILE, env, comc_pcidev_set,
|
||||
env_nounset);
|
||||
env_setenv("comconsole_pcidev", EV_VOLATILE, env,
|
||||
comc_pcidev_set, env_nounset);
|
||||
}
|
||||
comc_setup(comc_curspeed, comc_port);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user