Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/wscons Fix an ioctl() problem. From nisimura%itc.ai@localhost...



details:   https://anonhg.NetBSD.org/src/rev/9abe55be2441
branches:  trunk
changeset: 475798:9abe55be2441
user:      augustss <augustss%NetBSD.org@localhost>
date:      Wed Aug 25 21:05:21 1999 +0000

description:
Fix an ioctl() problem.  From nisimura%itc.aist-nara.ac.jp@localhost (Toru Nishimura).

diffstat:

 sys/dev/wscons/wsmux.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 1e944eecd9d3 -r 9abe55be2441 sys/dev/wscons/wsmux.c
--- a/sys/dev/wscons/wsmux.c    Wed Aug 25 20:55:35 1999 +0000
+++ b/sys/dev/wscons/wsmux.c    Wed Aug 25 21:05:21 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsmux.c,v 1.4 1999/08/14 11:40:31 simonb Exp $ */
+/*     $NetBSD: wsmux.c,v 1.5 1999/08/25 21:05:21 augustss Exp $       */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -610,7 +610,7 @@
                return (EACCES);
 
        /* Return 0 if any of the ioctl() succeeds, otherwise the last error */
-       error = 0;
+       error = -1;
        ok = 0;
        for (m = LIST_FIRST(&sc->sc_reals); m; m = LIST_NEXT(m, next)) {
                DPRINTF(("wsmuxdoioctl: m=%p *m->sc_muxp=%p sc=%p\n",



Home | Main Index | Thread Index | Old Index