diff options
| author | 2000-06-26 22:43:21 +0000 | |
|---|---|---|
| committer | 2000-06-26 22:43:21 +0000 | |
| commit | 8d302f0e789fee337bf7ebd3dbde37e920fe5753 (patch) | |
| tree | fe83e6932eb03a4b1a9af7153240a9441b942b7c /sys/dev/midi.c | |
| parent | MaxStartups: limit number of unauthenticated connections, work by theo and me (diff) | |
| download | wireguard-openbsd-8d302f0e789fee337bf7ebd3dbde37e920fe5753.tar.xz wireguard-openbsd-8d302f0e789fee337bf7ebd3dbde37e920fe5753.zip | |
Convert to new timeouts.
Diffstat (limited to 'sys/dev/midi.c')
| -rw-r--r-- | sys/dev/midi.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/midi.c b/sys/dev/midi.c index 24e690ea4d9..b91c4904218 100644 --- a/sys/dev/midi.c +++ b/sys/dev/midi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: midi.c,v 1.4 2000/05/24 13:44:18 ho Exp $ */ +/* $OpenBSD: midi.c,v 1.5 2000/06/26 22:43:21 art Exp $ */ /* $NetBSD: midi.c,v 1.10 1998/12/20 14:26:44 drochner Exp $ */ /* @@ -170,6 +170,7 @@ midi_attach(sc, parent) sc->sc_dev = parent; sc->hw_if->getinfo(sc->hw_hdl, &mi); sc->props = mi.props; + timeout_set(&sc->timeo, midi_timeout, sc); printf(": <%s>\n", mi.name); } @@ -527,7 +528,7 @@ midi_start_output(sc, intr) psignal(sc->async, SIGIO); if (mb->used > 0) { if (!(sc->props & MIDI_PROP_OUT_INTR)) - timeout(midi_timeout, sc, midi_wait); + timeout_add(&sc->timeo, midi_wait); } else sc->pbus = 0; splx(s); |
