diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2000-06-26 22:48:16 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2000-06-26 22:48:16 +0000 |
commit | ba8c9f5e49df22ca7994c1f22b5e4f50e5984cc9 (patch) | |
tree | d2f1c62cd91ae5ae0f06aa1939d2721be5dd76fb /sys/nfs/nfs_subs.c | |
parent | 116cce4edbd75135c1e24c5896f274e8fb7958e9 (diff) |
Convert nfs_timer to new timeouts.
Diffstat (limited to 'sys/nfs/nfs_subs.c')
-rw-r--r-- | sys/nfs/nfs_subs.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 2c54e7632a6..5ab8ab8e70c 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.28 2000/02/07 04:57:17 assar Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.29 2000/06/26 22:48:15 art Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -1080,6 +1080,8 @@ nfsm_strtmbuf(mb, bpos, cp, siz) void nfs_init() { + static struct timeout nfs_timer_to; + #if !defined(alpha) && defined(DIAGNOSTIC) /* * Check to see if major data structures haven't bloated. @@ -1140,7 +1142,9 @@ nfs_init() * Initialize reply list and start timer */ TAILQ_INIT(&nfs_reqq); - nfs_timer(NULL); + + timeout_set(&nfs_timer_to, nfs_timer, &nfs_timer_to); + nfs_timer(&nfs_timer_to); } #ifdef NFSCLIENT |