From 118ff35020024c11792c1aa21a17c399a0c7ae50 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Mon, 12 Apr 2010 12:57:53 +0000 Subject: Some of the line disciplines want to check for suser. Better to pass them a process instead of using curproc. ok deraadt --- sys/arch/alpha/alpha/promcons.c | 6 +++--- sys/arch/alpha/tc/scc.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'sys/arch/alpha') diff --git a/sys/arch/alpha/alpha/promcons.c b/sys/arch/alpha/alpha/promcons.c index ad333ab7a26..5df9fef0afa 100644 --- a/sys/arch/alpha/alpha/promcons.c +++ b/sys/arch/alpha/alpha/promcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: promcons.c,v 1.12 2009/11/09 17:53:38 nicm Exp $ */ +/* $OpenBSD: promcons.c,v 1.13 2010/04/12 12:57:51 tedu Exp $ */ /* $NetBSD: promcons.c,v 1.5 1996/11/13 22:20:55 cgd Exp $ */ /* @@ -100,7 +100,7 @@ promopen(dev, flag, mode, p) splx(s); - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = (*linesw[tp->t_line].l_open)(dev, tp, p); if (error == 0 && setuptimeout) { timeout_set(&prom_to, promtimeout, tp); timeout_add(&prom_to, 1); @@ -118,7 +118,7 @@ promclose(dev, flag, mode, p) struct tty *tp = prom_tty[unit]; timeout_del(&prom_to); - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); ttyclose(tp); return 0; } diff --git a/sys/arch/alpha/tc/scc.c b/sys/arch/alpha/tc/scc.c index b8fdf3a5e18..a5a47265404 100644 --- a/sys/arch/alpha/tc/scc.c +++ b/sys/arch/alpha/tc/scc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scc.c,v 1.25 2009/11/09 17:53:38 nicm Exp $ */ +/* $OpenBSD: scc.c,v 1.26 2010/04/12 12:57:51 tedu Exp $ */ /* $NetBSD: scc.c,v 1.58 2002/03/17 19:40:27 atatat Exp $ */ /* @@ -498,7 +498,7 @@ sccopen(dev, flag, mode, p) splx(s); if (error) return (error); - error = (*linesw[tp->t_line].l_open)(dev, tp); + error = (*linesw[tp->t_line].l_open)(dev, tp, p); return (error); } @@ -520,7 +520,7 @@ sccclose(dev, flag, mode, p) sc->scc_wreg[line].wr5 &= ~ZSWR5_BREAK; ttyoutput(0, tp); } - (*linesw[tp->t_line].l_close)(tp, flag); + (*linesw[tp->t_line].l_close)(tp, flag, p); if ((tp->t_cflag & HUPCL) || (tp->t_state & TS_WOPEN) || !(tp->t_state & TS_ISOPEN)) (void) sccmctl(sc, line, 0, DMSET); -- cgit v1.2.3