From b0ad6e203a4e0478a3c84ec3c30daa97987b9118 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Tue, 5 Mar 2002 19:31:25 +0000 Subject: [PATCH] The change from td->td_proc->p_ucred to td->td_ucred has shortened some lines: more agressively line wrap under those circumstances. --- sys/kern/vfs_extattr.c | 7 +++---- sys/kern/vfs_syscalls.c | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 8e98fcd33f69..81e86ce8dedd 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -2285,8 +2285,7 @@ setfflags(td, vp, flags) * chown can't fail when done as root. */ if (vp->v_type == VCHR || vp->v_type == VBLK) { - error = suser_xxx(td->td_ucred, td->td_proc, - PRISON_ROOT); + error = suser_xxx(td->td_ucred, td->td_proc, PRISON_ROOT); if (error) return (error); } @@ -4230,8 +4229,8 @@ extattr_delete_vp(struct vnode *vp, int attrnamespace, const char *attrname, VOP_LEASE(vp, td, td->td_ucred, LEASE_WRITE); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); - error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL, - td->td_ucred, td); + error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL, td->td_ucred, + td); VOP_UNLOCK(vp, 0, td); vn_finished_write(mp); diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 8e98fcd33f69..81e86ce8dedd 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -2285,8 +2285,7 @@ setfflags(td, vp, flags) * chown can't fail when done as root. */ if (vp->v_type == VCHR || vp->v_type == VBLK) { - error = suser_xxx(td->td_ucred, td->td_proc, - PRISON_ROOT); + error = suser_xxx(td->td_ucred, td->td_proc, PRISON_ROOT); if (error) return (error); } @@ -4230,8 +4229,8 @@ extattr_delete_vp(struct vnode *vp, int attrnamespace, const char *attrname, VOP_LEASE(vp, td, td->td_ucred, LEASE_WRITE); vn_lock(vp, LK_EXCLUSIVE | LK_RETRY, td); - error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL, - td->td_ucred, td); + error = VOP_SETEXTATTR(vp, attrnamespace, attrname, NULL, td->td_ucred, + td); VOP_UNLOCK(vp, 0, td); vn_finished_write(mp);