Squash clang warnings.
This commit is contained in:
parent
76289396e6
commit
e040073849
@ -207,7 +207,7 @@ vt_kbdevent(keyboard_t *kbd, int event, void *arg)
|
||||
shutdown_nice(RB_HALT|RB_POWEROFF);
|
||||
break;
|
||||
case SLK: {
|
||||
int state;
|
||||
int state = 0;
|
||||
|
||||
kbdd_ioctl(kbd, KDGKBSTATE, (caddr_t)&state);
|
||||
VT_LOCK(vd);
|
||||
@ -660,7 +660,7 @@ vtterm_cngetc(struct terminal *tm)
|
||||
|
||||
switch (c) {
|
||||
case SLK: {
|
||||
int state;
|
||||
int state = 0;
|
||||
|
||||
kbdd_ioctl(kbd, KDGKBSTATE, (caddr_t)&state);
|
||||
if (state & SLKED) {
|
||||
|
@ -183,7 +183,7 @@ terminal_maketty(struct terminal *tm, const char *fmt, ...)
|
||||
va_end(ap);
|
||||
|
||||
tp = tty_alloc(&terminal_tty_class, tm);
|
||||
tty_makedev(tp, NULL, name);
|
||||
tty_makedev(tp, NULL, "%s", name);
|
||||
tm->tm_tty = tp;
|
||||
terminal_sync_ttysize(tm);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user