summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-24 12:19:28 +0000
committerphk <phk@FreeBSD.org>2005-01-24 12:19:28 +0000
commit14337a61a26ed6e4851d384189e822803a1cb58c (patch)
treeb92ed7d8a00e9d924fd2f98b54db78476d409bb0
parentdfab8e2ed78513893aad24e322dac125ab5d7a12 (diff)
downloadFreeBSD-src-14337a61a26ed6e4851d384189e822803a1cb58c.zip
FreeBSD-src-14337a61a26ed6e4851d384189e822803a1cb58c.tar.gz
Polish style.
-rw-r--r--sys/ufs/ufs/ufs_vnops.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/ufs/ufs/ufs_vnops.c b/sys/ufs/ufs/ufs_vnops.c
index f376e3f..d4ed36e 100644
--- a/sys/ufs/ufs/ufs_vnops.c
+++ b/sys/ufs/ufs/ufs_vnops.c
@@ -240,22 +240,17 @@ ufs_mknod(ap)
*/
/* ARGSUSED */
static int
-ufs_open(ap)
- struct vop_open_args /* {
- struct vnode *a_vp;
- int a_mode;
- struct ucred *a_cred;
- struct thread *a_td;
- } */ *ap;
+ufs_open(struct vop_open_args *ap)
{
+ struct vnode *vp = ap->a_vp;
- if (ap->a_vp->v_type == VCHR || ap->a_vp->v_type == VBLK)
+ if (vp->v_type == VCHR || vp->v_type == VBLK)
return (EOPNOTSUPP);
/*
* Files marked append-only must be opened for appending.
*/
- if ((VTOI(ap->a_vp)->i_flags & APPEND) &&
+ if ((VTOI(vp)->i_flags & APPEND) &&
(ap->a_mode & (FWRITE | O_APPEND)) == FWRITE)
return (EPERM);
return (0);
OpenPOWER on IntegriCloud