From b285e7f9a80079a4c494e270e590147037229526 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Thu, 1 Aug 2002 01:29:03 +0000 Subject: [PATCH] Improve formatting and variable use consistency in extattr system calls. Submitted by: green Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs --- sys/kern/vfs_extattr.c | 5 ++--- 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 d14b77e69fc2..a6a29823db41 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 d14b77e69fc2..a6a29823db41 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);