From 31ab3630330cb2c4b692f389f80a4de8b8ecc582 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 28 Mar 2002 00:58:28 +0000 Subject: be more careful about breaking the RAMDISK guys --- sys/arch/macppc/dev/akbd.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sys/arch') 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; -- cgit v1.2.3