diff options
author | mjg <mjg@FreeBSD.org> | 2015-07-05 19:05:16 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-07-05 19:05:16 +0000 |
commit | feeee4c707ab28bab6cd1180144cef39832a1026 (patch) | |
tree | 722b04d655f398679c92441c3c43074c329a9d73 /sys/kern/kern_descrip.c | |
parent | 35acf35c2e04ac9da20ebfb09e37b5b73f2b04fa (diff) | |
download | FreeBSD-src-feeee4c707ab28bab6cd1180144cef39832a1026.zip FreeBSD-src-feeee4c707ab28bab6cd1180144cef39832a1026.tar.gz |
fd: make 'rights' a manadatory argument to fget* functions
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 2722283..85cda01 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -2423,13 +2423,10 @@ _fget(struct thread *td, int fd, struct file **fpp, int flags, { struct filedesc *fdp; struct file *fp; - cap_rights_t needrights; int error; *fpp = NULL; fdp = td->td_proc->p_fd; - if (needrightsp == NULL) - needrightsp = cap_rights_init(&needrights); error = fget_unlocked(fdp, fd, needrightsp, &fp, seqp); if (error != 0) return (error); |