One more ioctl() fix. Most of WSDISPLAYIO_xxx were never been called when

no wsmux device is installed.
This commit is contained in:
nisimura 1999-08-26 06:37:42 +00:00
parent a89a69391a
commit 94073f1fd9
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: wsmux.c,v 1.5 1999/08/25 21:05:21 augustss Exp $ */ /* $NetBSD: wsmux.c,v 1.6 1999/08/26 06:37:42 nisimura Exp $ */
/* /*
* Copyright (c) 1998 The NetBSD Foundation, Inc. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -652,7 +652,7 @@ wsmux_displayioctl(dv, cmd, data, flag, p)
#endif #endif
/* Return 0 if any of the ioctl() succeeds, otherwise the last error */ /* Return 0 if any of the ioctl() succeeds, otherwise the last error */
error = 0; error = -1;
ok = 0; ok = 0;
for (m = LIST_FIRST(&sc->sc_reals); m; m = LIST_NEXT(m, next)) { for (m = LIST_FIRST(&sc->sc_reals); m; m = LIST_NEXT(m, next)) {
DPRINTF(("wsmux_displayioctl: m=%p sc=%p sc_muxp=%p\n", DPRINTF(("wsmux_displayioctl: m=%p sc=%p sc_muxp=%p\n",