Improve formatting and variable use consistency in extattr system

calls.

Submitted by:	green
Obtained from:	TrustedBSD Project
Sponsored by:	DARPA, NAI Labs
This commit is contained in:
Robert Watson 2002-08-01 01:29:03 +00:00
parent 956fc3f8a5
commit b285e7f9a8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101129
2 changed files with 4 additions and 6 deletions

View File

@ -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);

View File

@ -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);