Squash clang warnings.

This commit is contained in:
nwhitehorn 2012-12-02 22:21:40 +00:00
parent 76289396e6
commit e040073849
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -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);
}