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:
Nathan Whitehorn 2013-10-29 00:53:17 +00:00
parent ea7f1c8cd2
commit f7d6cb2081
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257295

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];