Return NOKEY instead of 0 if there are no more key presses queued. This

worked by accident if and only if akbd was part of a kbdmux (which it
always was in practice).

MFC after:	1 week
This commit is contained in:
nwhitehorn 2013-10-29 00:53:17 +00:00
parent d070810920
commit 446b37adc9

View File

@ -621,7 +621,7 @@ akbd_read_char(keyboard_t *kbd, int wait)
if (!sc->buffers) {
mtx_unlock(&sc->sc_mutex);
return (0);
return (NOKEY);
}
adb_code = sc->buffer[0];