Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hp300/dev Make this compile properly with options W...



details:   https://anonhg.NetBSD.org/src/rev/ab2cfd017328
branches:  trunk
changeset: 761968:ab2cfd017328
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Feb 12 16:30:22 2011 +0000

description:
Make this compile properly with options WSDISPLAY_COMPAT_RAWKBD.

diffstat:

 sys/arch/hp300/dev/dnkbd.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a58dc2fadc07 -r ab2cfd017328 sys/arch/hp300/dev/dnkbd.c
--- a/sys/arch/hp300/dev/dnkbd.c        Sat Feb 12 16:08:18 2011 +0000
+++ b/sys/arch/hp300/dev/dnkbd.c        Sat Feb 12 16:30:22 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dnkbd.c,v 1.1 2011/02/12 15:49:01 tsutsui Exp $        */
+/*     $NetBSD: dnkbd.c,v 1.2 2011/02/12 16:30:22 tsutsui Exp $        */
 /*     $OpenBSD: dnkbd.c,v 1.17 2009/07/23 21:05:56 blambert Exp $     */
 
 /*
@@ -31,6 +31,8 @@
  * Driver for the Apollo Domain keyboard and mouse.
  */
 
+#include "opt_wsdisplay_compat.h"
+
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/device.h>
@@ -681,7 +683,7 @@
                int c, j = 0;
 
                c = dnkbd_raw[key];
-               if (c != RAWKEY_Null) {
+               if (c != 0) {
                        /* fake extended scancode if necessary */
                        if (c & 0x80)
                                cbuf[j++] = 0xe0;



Home | Main Index | Thread Index | Old Index