summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblambert <blambert@openbsd.org>2009-07-26 13:43:38 +0000
committerblambert <blambert@openbsd.org>2009-07-26 13:43:38 +0000
commite8b5feb315b667322785701ac4b99cedbcc8652c (patch)
treeedafd1470c0899ebc01942e876900fc396a4b30c
parentuse ``sizeof(string) - 1'' rather than ``strlen(string)'' on static (diff)
downloadwireguard-openbsd-e8b5feb315b667322785701ac4b99cedbcc8652c.tar.xz
wireguard-openbsd-e8b5feb315b667322785701ac4b99cedbcc8652c.zip
timeout_add -> timeout_add_msec
ok miod@
-rw-r--r--sys/arch/hp300/dev/mt.c8
-rw-r--r--sys/arch/hp300/dev/nhpib.c4
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/hp300/dev/mt.c b/sys/arch/hp300/dev/mt.c
index 6104c987831..4117fd7e0b6 100644
--- a/sys/arch/hp300/dev/mt.c
+++ b/sys/arch/hp300/dev/mt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mt.c,v 1.22 2009/01/11 16:54:59 blambert Exp $ */
+/* $OpenBSD: mt.c,v 1.23 2009/07/26 13:43:38 blambert Exp $ */
/* $NetBSD: mt.c,v 1.8 1997/03/31 07:37:29 scottr Exp $ */
/*
@@ -555,7 +555,7 @@ mtstart(arg)
* but not otherwise.
*/
if (sc->sc_flags & (MTF_DSJTIMEO | MTF_STATTIMEO)) {
- timeout_add(&sc->sc_start_to, hz >> 5);
+ timeout_add_msec(&sc->sc_start_to, 1000 >> 5);
return;
}
case 2:
@@ -641,7 +641,7 @@ mtstart(arg)
break;
case -2:
- timeout_add(&sc->sc_start_to, hz >> 5);
+ timeout_add_msec(&sc->sc_start_to, 1000 >> 5);
return;
}
@@ -797,7 +797,7 @@ mtintr(arg)
* to the request for DSJ. It's probably just "busy" figuring
* it out and will know in a little bit...
*/
- timeout_add(&sc->sc_intr_to, hz >> 5);
+ timeout_add_msec(&sc->sc_intr_to, 1000 >> 5);
return;
default:
diff --git a/sys/arch/hp300/dev/nhpib.c b/sys/arch/hp300/dev/nhpib.c
index 3e191da1177..d5b2bb747af 100644
--- a/sys/arch/hp300/dev/nhpib.c
+++ b/sys/arch/hp300/dev/nhpib.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nhpib.c,v 1.16 2005/11/13 18:52:15 miod Exp $ */
+/* $OpenBSD: nhpib.c,v 1.17 2009/07/26 13:43:38 blambert Exp $ */
/* $NetBSD: nhpib.c,v 1.17 1997/05/05 21:06:41 thorpej Exp $ */
/*
@@ -433,7 +433,7 @@ nhpibdone(hs)
if (hs->sc_flags & HPIBF_READ) {
if ((hs->sc_flags & HPIBF_TIMO) &&
(hd->hpib_ids & IDS_IR) == 0)
- timeout_add(&sc->sc_read_to, hz >> 2);
+ timeout_add_msec(&sc->sc_read_to, 1000 >> 2);
} else {
if (hs->sc_count == 1) {
(void) nhpibwait(hd, MIS_BO);