summaryrefslogtreecommitdiff
path: root/sys/dev/wscons
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2010-04-12 12:57:53 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2010-04-12 12:57:53 +0000
commit118ff35020024c11792c1aa21a17c399a0c7ae50 (patch)
tree9098033afb7543fe1823200e5c883020c95b7a7c /sys/dev/wscons
parent9d9ad9bde307f225e9fd28b6db3d7d42a0da8ff7 (diff)
Some of the line disciplines want to check for suser. Better to pass them
a process instead of using curproc. ok deraadt
Diffstat (limited to 'sys/dev/wscons')
-rw-r--r--sys/dev/wscons/wsdisplay.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wsdisplay.c b/sys/dev/wscons/wsdisplay.c
index 70153570124..62663eea3e9 100644
--- a/sys/dev/wscons/wsdisplay.c
+++ b/sys/dev/wscons/wsdisplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsdisplay.c,v 1.98 2010/03/30 17:40:55 oga Exp $ */
+/* $OpenBSD: wsdisplay.c,v 1.99 2010/04/12 12:57:52 tedu Exp $ */
/* $NetBSD: wsdisplay.c,v 1.82 2005/02/27 00:27:52 perry Exp $ */
/*
@@ -857,7 +857,7 @@ wsdisplayopen(dev_t dev, int flag, int mode, struct proc *p)
return (EBUSY);
tp->t_state |= TS_CARR_ON;
- error = ((*linesw[tp->t_line].l_open)(dev, tp));
+ error = ((*linesw[tp->t_line].l_open)(dev, tp, p));
if (error)
return (error);
@@ -900,7 +900,7 @@ wsdisplayclose(dev_t dev, int flag, int mode, struct proc *p)
splx(s);
}
tp = scr->scr_tty;
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
ttyclose(tp);
}