summaryrefslogtreecommitdiff
path: root/sys/arch/mvmeppc/dev
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/arch/mvmeppc/dev
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/arch/mvmeppc/dev')
-rw-r--r--sys/arch/mvmeppc/dev/bugtty.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/mvmeppc/dev/bugtty.c b/sys/arch/mvmeppc/dev/bugtty.c
index 2a6c5ffc7b1..fb2b3022628 100644
--- a/sys/arch/mvmeppc/dev/bugtty.c
+++ b/sys/arch/mvmeppc/dev/bugtty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bugtty.c,v 1.12 2009/10/31 12:00:07 fgsch Exp $ */
+/* $OpenBSD: bugtty.c,v 1.13 2010/04/12 12:57:52 tedu Exp $ */
/* Copyright (c) 1998 Steve Murphree, Jr.
* Copyright (c) 1995 Dale Rahn.
@@ -226,7 +226,7 @@ bugttyopen(dev, flag, mode, p)
* use of the tty with a dialin open waiting.
*/
tp->t_dev = dev;
- return ((*linesw[tp->t_line].l_open)(dev, tp));
+ return ((*linesw[tp->t_line].l_open)(dev, tp, p));
}
int
@@ -268,7 +268,7 @@ bugttyclose(dev, flag, mode, p)
int unit = BUGTTYUNIT(dev);
struct tty *tp = bugtty_tty[unit];
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
ttyclose(tp);
#if 0