Fix 'struct lwp *' lossage.

This commit is contained in:
simonb 2003-06-29 09:56:26 +00:00
parent 6147cc4ab2
commit 33d036f82c
1 changed files with 13 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dc.c,v 1.72 2003/03/21 17:23:22 drochner Exp $ */
/* $NetBSD: dc.c,v 1.73 2003/06/29 09:56:27 simonb Exp $ */
/*-
* Copyright (c) 1992, 1993
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.72 2003/03/21 17:23:22 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: dc.c,v 1.73 2003/06/29 09:56:27 simonb Exp $");
/*
* devDC7085.c --
@ -464,10 +464,10 @@ dc_mouse_init(sc, dev)
* open tty
*/
int
dcopen(dev, flag, mode, p)
dcopen(dev, flag, mode, l)
dev_t dev;
int flag, mode;
struct proc *p;
struct lwp *l;
{
struct tty *tp;
struct dc_softc *sc;
@ -535,10 +535,10 @@ dcopen(dev, flag, mode, p)
/*ARGSUSED*/
int
dcclose(dev, flag, mode, p)
dcclose(dev, flag, mode, l)
dev_t dev;
int flag, mode;
struct proc *p;
struct lwp *l;
{
struct dc_softc *sc;
struct tty *tp;
@ -599,17 +599,17 @@ dcwrite(dev, uio, flag)
}
int
dcpoll(dev, events, p)
dcpoll(dev, events, l)
dev_t dev;
int events;
struct proc *p;
struct lwp *l;
{
struct dc_softc *sc;
struct tty *tp;
sc = dc_cd.cd_devs[DCUNIT(dev)];
tp = sc->dc_tty[DCLINE(dev)];
return ((*tp->t_linesw->l_poll)(tp, events, p));
return ((*tp->t_linesw->l_poll)(tp, events, l));
}
struct tty *
@ -626,12 +626,12 @@ dctty(dev)
/*ARGSUSED*/
int
dcioctl(dev, cmd, data, flag, p)
dcioctl(dev, cmd, data, flag, l)
dev_t dev;
u_long cmd;
caddr_t data;
int flag;
struct proc *p;
struct lwp *l;
{
struct dc_softc *sc;
struct tty *tp;
@ -645,11 +645,11 @@ dcioctl(dev, cmd, data, flag, p)
sc = dc_cd.cd_devs[unit];
tp = sc->dc_tty[line];
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, p);
error = (*tp->t_linesw->l_ioctl)(tp, cmd, data, flag, l);
if (error != EPASSTHROUGH)
return (error);
error = ttioctl(tp, cmd, data, flag, p);
error = ttioctl(tp, cmd, data, flag, l);
if (error != EPASSTHROUGH)
return (error);