From 636ce48d405dbb5d05efaa32a88dbd9c02cdf3a8 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Wed, 25 Jul 2001 04:54:38 +0000 Subject: be carefull about initializing timeouts --- sys/dev/usb/ukbd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/usb/ukbd.c b/sys/dev/usb/ukbd.c index b8dffaa12f5..3e70d8673de 100644 --- a/sys/dev/usb/ukbd.c +++ b/sys/dev/usb/ukbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ukbd.c,v 1.6 2001/05/03 02:20:33 aaron Exp $ */ +/* $OpenBSD: ukbd.c,v 1.7 2001/07/25 04:54:37 mickey Exp $ */ /* $NetBSD: ukbd.c,v 1.66 2001/04/06 22:54:15 augustss Exp $ */ /* @@ -397,8 +397,10 @@ USB_ATTACH(ukbd) a.accessops = &ukbd_accessops; a.accesscookie = sc; -#if defined(__OpenBSD__) && defined(WSDISPLAY_COMPAT_RAWKBD) +#if defined(__OpenBSD__) +#ifdef WSDISPLAY_COMPAT_RAWKBD timeout_set(&sc->sc_rawrepeat_ch, ukbd_rawrepeat, sc); +#endif timeout_set(&sc->sc_delay, ukbd_delayed_decode, sc); #endif -- cgit v1.2.3