diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-25 04:54:38 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-07-25 04:54:38 +0000 |
commit | 636ce48d405dbb5d05efaa32a88dbd9c02cdf3a8 (patch) | |
tree | 646ebbb3695711c7afb35a22bdd5a30e8302272f /sys/dev/usb/ukbd.c | |
parent | a461320a28ef587a3e11b253153e0e71519bef40 (diff) |
be carefull about initializing timeouts
Diffstat (limited to 'sys/dev/usb/ukbd.c')
-rw-r--r-- | sys/dev/usb/ukbd.c | 6 |
1 files changed, 4 insertions, 2 deletions
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 |