summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBret Lambert <blambert@cvs.openbsd.org>2010-07-02 15:01:11 +0000
committerBret Lambert <blambert@cvs.openbsd.org>2010-07-02 15:01:11 +0000
commitbe88ab55c1859eac36ec93f246ad6d766a5fe100 (patch)
treea1be940b6dd39ecdd7e5000ce182896e9bc7a274 /sys/dev
parentfc6089cdb2ab2b5d7cf385d9864e9266e42034d2 (diff)
timeout_add -> timeout_add_msec
ok krw@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/bluetooth/bthidev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/bluetooth/bthidev.c b/sys/dev/bluetooth/bthidev.c
index 9908d971d67..2df63415440 100644
--- a/sys/dev/bluetooth/bthidev.c
+++ b/sys/dev/bluetooth/bthidev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bthidev.c,v 1.6 2009/11/21 13:05:32 guenther Exp $ */
+/* $OpenBSD: bthidev.c,v 1.7 2010/07/02 15:01:10 blambert Exp $ */
/* $NetBSD: bthidev.c,v 1.16 2008/08/06 15:01:23 plunky Exp $ */
/*-
@@ -642,8 +642,8 @@ bthidev_ctl_disconnected(void *arg, int err)
sc->sc_flags &= ~BTHID_CONNECTING;
if (sc->sc_flags & BTHID_RECONNECT)
- timeout_add(&sc->sc_reconnect,
- BTHID_RETRY_INTERVAL * hz);
+ timeout_add_sec(&sc->sc_reconnect,
+ BTHID_RETRY_INTERVAL);
else
sc->sc_state = BTHID_WAIT_CTL;
} else {
@@ -674,8 +674,8 @@ bthidev_int_disconnected(void *arg, int err)
sc->sc_flags &= ~BTHID_CONNECTING;
if (sc->sc_flags & BTHID_RECONNECT)
- timeout_add(&sc->sc_reconnect,
- BTHID_RETRY_INTERVAL * hz);
+ timeout_add_sec(&sc->sc_reconnect,
+ BTHID_RETRY_INTERVAL);
else
sc->sc_state = BTHID_WAIT_CTL;
} else {