diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-08-24 14:23:42 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-08-24 14:23:42 +0000 |
commit | 65885ba123da359d48fbbf92d49c7a2732544c71 (patch) | |
tree | 7be21ae43f31e91069c117549a29b71bfab4ca55 /sys/dev/ofw/ofcons.c | |
parent | ffd9f36de8f104da26e86600920ad2e556c3a0d1 (diff) |
Fix the typos in the timeout replacement.
Diffstat (limited to 'sys/dev/ofw/ofcons.c')
-rw-r--r-- | sys/dev/ofw/ofcons.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/ofw/ofcons.c b/sys/dev/ofw/ofcons.c index 48f9a21571a..1c4db34da18 100644 --- a/sys/dev/ofw/ofcons.c +++ b/sys/dev/ofw/ofcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ofcons.c,v 1.6 2001/08/21 01:55:50 drahn Exp $ */ +/* $OpenBSD: ofcons.c,v 1.7 2001/08/24 14:23:41 drahn Exp $ */ /* $NetBSD: ofcons.c,v 1.3 1996/10/13 01:38:11 christos Exp $ */ /* @@ -94,7 +94,7 @@ ofcattach(parent, self, aux) struct device *parent, *self; void *aux; { - struct ofc_softc *sc = (void *)self: + struct ofc_softc *sc = (void *)self; timeout_set(&sc->of_tmo, ofcpoll, sc); printf("\n"); @@ -294,7 +294,7 @@ ofcpoll(aux) if (tp && (tp->t_state & TS_ISOPEN)) (*linesw[tp->t_line].l_rint)(ch, tp); } - timeout_add(&of->of_tmo, 1); + timeout_add(&sc->of_tmo, 1); } static int @@ -374,12 +374,12 @@ ofccnpollc(dev, on) return; if (on) { if (sc->of_flags & OFPOLL) - timeout_del(&of->of_tmo); + timeout_del(&sc->of_tmo); sc->of_flags &= ~OFPOLL; } else { if (!(sc->of_flags & OFPOLL)) { sc->of_flags |= OFPOLL; - timeout_add(&of->of_tmo, 1); + timeout_add(&sc->of_tmo, 1); } } } |