diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-08-01 01:29:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-08-01 01:29:03 +0000 |
commit | 6d0d48759b3059a7047764333355b5992445a4d3 (patch) | |
tree | c0beec46908b4c0e69b7f0dedcc4d8c089f08182 | |
parent | 14cc38f1e8b9ecfddcaa4b999ac4fcf315ce8137 (diff) | |
download | FreeBSD-src-6d0d48759b3059a7047764333355b5992445a4d3.zip FreeBSD-src-6d0d48759b3059a7047764333355b5992445a4d3.tar.gz |
Improve formatting and variable use consistency in extattr system
calls.
Submitted by: green
Obtained from: TrustedBSD Project
Sponsored by: DARPA, NAI Labs
-rw-r--r-- | sys/kern/vfs_extattr.c | 5 | ||||
-rw-r--r-- | sys/kern/vfs_syscalls.c | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index d14b77e..a6a2982 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -3756,7 +3756,7 @@ extattr_get_fd(td, uap) if (error) return (error); - if ((error = getvnode(td->td_proc->p_fd, SCARG(uap, fd), &fp)) != 0) + if ((error = getvnode(td->td_proc->p_fd, uap->fd, &fp)) != 0) return (error); error = extattr_get_vp((struct vnode *)fp->f_data, uap->attrnamespace, @@ -3846,8 +3846,7 @@ extattr_delete_fd(td, uap) return (error); vp = (struct vnode *)fp->f_data; - error = extattr_delete_vp((struct vnode *)fp->f_data, - uap->attrnamespace, attrname, td); + error = extattr_delete_vp(vp, uap->attrnamespace, attrname, td); fdrop(fp, td); return (error); diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index d14b77e..a6a2982 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -3756,7 +3756,7 @@ extattr_get_fd(td, uap) if (error) return (error); - if ((error = getvnode(td->td_proc->p_fd, SCARG(uap, fd), &fp)) != 0) + if ((error = getvnode(td->td_proc->p_fd, uap->fd, &fp)) != 0) return (error); error = extattr_get_vp((struct vnode *)fp->f_data, uap->attrnamespace, @@ -3846,8 +3846,7 @@ extattr_delete_fd(td, uap) return (error); vp = (struct vnode *)fp->f_data; - error = extattr_delete_vp((struct vnode *)fp->f_data, - uap->attrnamespace, attrname, td); + error = extattr_delete_vp(vp, uap->attrnamespace, attrname, td); fdrop(fp, td); return (error); |