summaryrefslogtreecommitdiffstats
path: root/sys/kern/tty.c
diff options
context:
space:
mode:
authornatano <natano@openbsd.org>2016-03-19 12:04:15 +0000
committernatano <natano@openbsd.org>2016-03-19 12:04:15 +0000
commit937fcae7c622e0ae47c1757467b994983f2677fb (patch)
tree67fb7013ab6a41111d228055d032a29f68d1516d /sys/kern/tty.c
parentReduces the noise around the global ``ticks'' variable by renaming all (diff)
downloadwireguard-openbsd-937fcae7c622e0ae47c1757467b994983f2677fb.tar.xz
wireguard-openbsd-937fcae7c622e0ae47c1757467b994983f2677fb.zip
Remove the unused flags argument from VOP_UNLOCK().
torture tested on amd64, i386 and macppc ok beck mpi stefan "the change looks right" deraadt
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r--sys/kern/tty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 92430eb22f1..8a02edb030d 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tty.c,v 1.129 2016/01/28 18:02:36 stefan Exp $ */
+/* $OpenBSD: tty.c,v 1.130 2016/03/19 12:04:15 natano Exp $ */
/* $NetBSD: tty.c,v 1.68.4.2 1996/06/06 16:04:52 thorpej Exp $ */
/*-
@@ -803,7 +803,7 @@ ttioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
return (error);
vn_lock(nid.ni_vp, LK_EXCLUSIVE | LK_RETRY, p);
error = VOP_ACCESS(nid.ni_vp, VREAD, p->p_ucred, p);
- VOP_UNLOCK(nid.ni_vp, 0, p);
+ VOP_UNLOCK(nid.ni_vp, p);
vrele(nid.ni_vp);
if (error)
return (error);