diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2000-07-02 17:50:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2000-07-02 17:50:27 +0000 |
commit | bb13cce4ae3bb5e97e20cdcdd7dcd51372761860 (patch) | |
tree | 4dbb01cb8be62be98946582375e4c8680734ff2b /sys/arch | |
parent | dcb988491031140db35899c46b628bad6964ac59 (diff) |
Silence annoying warnings when using type 4 or 5 keyboards on sun3
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sun3/dev/kbd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/arch/sun3/dev/kbd.c b/sys/arch/sun3/dev/kbd.c index bf1eeedc7b3..14e89012bc9 100644 --- a/sys/arch/sun3/dev/kbd.c +++ b/sys/arch/sun3/dev/kbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kbd.c,v 1.4 1997/08/19 23:09:35 kstailey Exp $ */ +/* $OpenBSD: kbd.c,v 1.5 2000/07/02 17:50:26 miod Exp $ */ /* $NetBSD: kbd.c,v 1.8 1996/05/17 19:32:06 gwr Exp $ */ /* @@ -816,7 +816,11 @@ kbd_input_keysym(k, keysym) break; case KEYSYM_SPECIAL: - if (keysym == KEYSYM_NOP) + /* + * Unrecognized keys from type 4 or 5 keyboards generate + * KEYSYM_HOLE + */ + if (keysym == KEYSYM_NOP || keysym == KEYSYM_HOLE) break; /* fall through */ default: |