summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/dev/akbd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/macppc/dev/akbd.c b/sys/arch/macppc/dev/akbd.c
index 32103ee8837..42c0cf534af 100644
--- a/sys/arch/macppc/dev/akbd.c
+++ b/sys/arch/macppc/dev/akbd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: akbd.c,v 1.4 2002/03/27 21:48:12 drahn Exp $ */
+/* $OpenBSD: akbd.c,v 1.5 2002/03/28 00:58:27 deraadt Exp $ */
/* $NetBSD: akbd.c,v 1.13 2001/01/25 14:08:55 tsubai Exp $ */
/*
@@ -459,7 +459,10 @@ akbd_ioctl(v, cmd, data, flag, p)
int flag;
struct proc *p;
{
+#ifdef WSDISPLAY_COMPAT_RAWKBD
struct akbd_softc *sc = v;
+#endif
+
switch (cmd) {
case WSKBDIO_GTYPE:
@@ -510,7 +513,6 @@ akbd_intr(event)
{
int key, press, val;
int type;
- int s;
struct akbd_softc *sc = akbd_cd.cd_devs[0];
@@ -543,7 +545,7 @@ akbd_intr(event)
#ifdef WSDISPLAY_COMPAT_RAWKBD
} else if (sc->sc_rawkbd) {
char cbuf[MAXKEYS *2];
- int c, j;
+ int c, j, s;
int npress;
j = npress = 0;