summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2002-03-05 19:31:25 +0000
committerrwatson <rwatson@FreeBSD.org>2002-03-05 19:31:25 +0000
commit191712b56546d2247ba1b215548af2f340f1f2ea (patch)
treeb532feb16cb13af76f6aa6eece4192ecbd153f0b /sys
parentbe470ebd23aa7ac65842624657d6a9ab923a29f1 (diff)
downloadFreeBSD-src-191712b56546d2247ba1b215548af2f340f1f2ea.zip
FreeBSD-src-191712b56546d2247ba1b215548af2f340f1f2ea.tar.gz
The change from td->td_proc->p_ucred to td->td_ucred has shortened some
lines: more agressively line wrap under those circumstances.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/vfs_extattr.c7
-rw-r--r--sys/kern/vfs_syscalls.c7
2 files changed, 6 insertions, 8 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c
index 8e98fcd..81e86ce 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 8e98fcd..81e86ce 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);
OpenPOWER on IntegriCloud