Module Name:    src
Committed By:   tsutsui
Date:           Sat Feb 12 16:30:22 UTC 2011

Modified Files:
        src/sys/arch/hp300/dev: dnkbd.c

Log Message:
Make this compile properly with options WSDISPLAY_COMPAT_RAWKBD.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/hp300/dev/dnkbd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hp300/dev/dnkbd.c
diff -u src/sys/arch/hp300/dev/dnkbd.c:1.1 src/sys/arch/hp300/dev/dnkbd.c:1.2
--- src/sys/arch/hp300/dev/dnkbd.c:1.1	Sat Feb 12 15:49:01 2011
+++ src/sys/arch/hp300/dev/dnkbd.c	Sat Feb 12 16:30:22 2011
@@ -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;

Reply via email to