summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
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/hp300
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/hp300')
-rw-r--r--sys/arch/hp300/dev/apci.c6
-rw-r--r--sys/arch/hp300/dev/dca.c6
-rw-r--r--sys/arch/hp300/dev/dcm.c6
3 files changed, 9 insertions, 9 deletions
diff --git a/sys/arch/hp300/dev/apci.c b/sys/arch/hp300/dev/apci.c
index 935107d921e..f14822f878d 100644
--- a/sys/arch/hp300/dev/apci.c
+++ b/sys/arch/hp300/dev/apci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: apci.c,v 1.37 2009/11/09 17:53:38 nicm Exp $ */
+/* $OpenBSD: apci.c,v 1.38 2010/04/12 12:57:51 tedu Exp $ */
/* $NetBSD: apci.c,v 1.9 2000/11/02 00:35:05 eeh Exp $ */
/*-
@@ -368,7 +368,7 @@ apciopen(dev, flag, mode, p)
splx(s);
if (error == 0)
- error = (*linesw[tp->t_line].l_open)(dev, tp);
+ error = (*linesw[tp->t_line].l_open)(dev, tp, p);
if (error == 0) {
/* clear errors, start timeout */
@@ -396,7 +396,7 @@ apciclose(dev, flag, mode, p)
apci = sc->sc_apci;
tp = sc->sc_tty;
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
s = spltty();
diff --git a/sys/arch/hp300/dev/dca.c b/sys/arch/hp300/dev/dca.c
index 40ace43a431..3a5b18d0959 100644
--- a/sys/arch/hp300/dev/dca.c
+++ b/sys/arch/hp300/dev/dca.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dca.c,v 1.38 2009/11/09 17:53:38 nicm Exp $ */
+/* $OpenBSD: dca.c,v 1.39 2010/04/12 12:57:51 tedu Exp $ */
/* $NetBSD: dca.c,v 1.35 1997/05/05 20:58:18 thorpej Exp $ */
/*
@@ -400,7 +400,7 @@ dcaopen(dev, flag, mode, p)
splx(s);
if (error == 0)
- error = (*linesw[tp->t_line].l_open)(dev, tp);
+ error = (*linesw[tp->t_line].l_open)(dev, tp, p);
return (error);
}
@@ -424,7 +424,7 @@ dcaclose(dev, flag, mode, p)
dca = sc->sc_dca;
tp = sc->sc_tty;
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
s = spltty();
diff --git a/sys/arch/hp300/dev/dcm.c b/sys/arch/hp300/dev/dcm.c
index 4ae07da8f0b..a344b8cc287 100644
--- a/sys/arch/hp300/dev/dcm.c
+++ b/sys/arch/hp300/dev/dcm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dcm.c,v 1.32 2009/11/09 17:53:38 nicm Exp $ */
+/* $OpenBSD: dcm.c,v 1.33 2010/04/12 12:57:51 tedu Exp $ */
/* $NetBSD: dcm.c,v 1.41 1997/05/05 20:59:16 thorpej Exp $ */
/*
@@ -549,7 +549,7 @@ dcmopen(dev, flag, mode, p)
sc->sc_dev.dv_xname, port, tp->t_state, tp->t_flags);
#endif
if (error == 0)
- error = (*linesw[tp->t_line].l_open)(dev, tp);
+ error = (*linesw[tp->t_line].l_open)(dev, tp, p);
return (error);
}
@@ -572,7 +572,7 @@ dcmclose(dev, flag, mode, p)
sc = dcm_cd.cd_devs[board];
tp = sc->sc_tty[port];
- (*linesw[tp->t_line].l_close)(tp, flag);
+ (*linesw[tp->t_line].l_close)(tp, flag, p);
s = spltty();