summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-04-28 20:06:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-04-28 20:06:01 +0000
commite28717b81f1b39d717b220b1e2be89708c885db0 (patch)
tree745ecb8e4a6ea1bb046570cd82f4647a24f12d44
parenteaa6d3992280a79f451b22c5b2cf5fc589421edb (diff)
In wsmux_set_display(), pass FWRITE instead of 0 when invoking ioctl
WSKBDIO_SETMODE, or it will be ignored.
-rw-r--r--sys/dev/wscons/wsmux.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/wscons/wsmux.c b/sys/dev/wscons/wsmux.c
index f250741e1d1..e6e42b54a3b 100644
--- a/sys/dev/wscons/wsmux.c
+++ b/sys/dev/wscons/wsmux.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmux.c,v 1.15 2005/08/14 11:00:15 miod Exp $ */
+/* $OpenBSD: wsmux.c,v 1.16 2006/04/28 20:06:00 miod Exp $ */
/* $NetBSD: wsmux.c,v 1.37 2005/04/30 03:47:12 augustss Exp $ */
/*
@@ -812,7 +812,7 @@ wsmux_set_display(struct wsmux_softc *sc, struct device *displaydv)
,
me->me_dv.dv_xname, sc->sc_rawkbd));
(void)wsevsrc_ioctl(me, WSKBDIO_SETMODE,
- &sc->sc_rawkbd, 0, 0);
+ &sc->sc_rawkbd, FWRITE, 0);
#endif
}
}