summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev/akbd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-28 00:58:28 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-03-28 00:58:28 +0000
commit31ab3630330cb2c4b692f389f80a4de8b8ecc582 (patch)
treedfae8d466365f9b2a880b2abed90f349d1c9f822 /sys/arch/macppc/dev/akbd.c
parent22cdd3a1fd958a1736b9d1f41355ef989aeb7308 (diff)
be more careful about breaking the RAMDISK guys
Diffstat (limited to 'sys/arch/macppc/dev/akbd.c')
-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;