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

This commit is contained in:
augustss 1999-08-25 21:05:21 +00:00
parent 72b1756c5a
commit 6516d0b239
1 changed files with 2 additions and 2 deletions

View File

@ -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. * Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -610,7 +610,7 @@ wsmuxdoioctl(dv, cmd, data, flag, p)
return (EACCES); return (EACCES);
/* 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(("wsmuxdoioctl: m=%p *m->sc_muxp=%p sc=%p\n", DPRINTF(("wsmuxdoioctl: m=%p *m->sc_muxp=%p sc=%p\n",