mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 23:28:57 +00:00
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:
parent
956fc3f8a5
commit
b285e7f9a8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=101129
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user