Author: nwhitehorn Date: Tue Oct 29 00:53:17 2013 New Revision: 257295 URL: http://svnweb.freebsd.org/changeset/base/257295
Log: 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 Modified: head/sys/dev/adb/adb_kbd.c Modified: head/sys/dev/adb/adb_kbd.c ============================================================================== --- head/sys/dev/adb/adb_kbd.c Tue Oct 29 00:52:02 2013 (r257294) +++ head/sys/dev/adb/adb_kbd.c Tue Oct 29 00:53:17 2013 (r257295) @@ -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]; _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"