diff options
author | mjg <mjg@FreeBSD.org> | 2015-04-11 15:40:28 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-04-11 15:40:28 +0000 |
commit | 22da590f1183b3e1c50dcae3b7b86f7d0f98f847 (patch) | |
tree | 459507ed60c5523e27a2afd507ee8abc206839ac /sys/kern/kern_descrip.c | |
parent | acfe91018ea0304c15ec34504e7769688cfc6914 (diff) | |
download | FreeBSD-src-22da590f1183b3e1c50dcae3b7b86f7d0f98f847.zip FreeBSD-src-22da590f1183b3e1c50dcae3b7b86f7d0f98f847.tar.gz |
fd: remove filedesc argument from fdclose
Just accept a thread instead. This makes it consistent with fdalloc.
No functional changes.
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 4041353..5290957 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -2155,8 +2155,9 @@ fdsetugidsafety(struct thread *td) * file descriptor out from under the thread creating the file object. */ void -fdclose(struct filedesc *fdp, struct file *fp, int idx, struct thread *td) +fdclose(struct thread *td, struct file *fp, int idx) { + struct filedesc *fdp = td->td_proc->p_fd; FILEDESC_XLOCK(fdp); if (fdp->fd_ofiles[idx].fde_file == fp) { |