mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
kern_openat(): minor style fixes
Reviewed by: markj, pjd Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D43529
This commit is contained in:
parent
2a284076ec
commit
3d59b93b20
|
@ -1114,16 +1114,18 @@ int
|
|||
kern_openat(struct thread *td, int dirfd, const char *path,
|
||||
enum uio_seg pathseg, int flags, int mode)
|
||||
{
|
||||
struct proc *p = td->td_proc;
|
||||
struct proc *p;
|
||||
struct filedesc *fdp;
|
||||
struct pwddesc *pdp;
|
||||
struct file *fp;
|
||||
struct vnode *vp;
|
||||
struct filecaps *fcaps;
|
||||
struct nameidata nd;
|
||||
cap_rights_t rights;
|
||||
int cmode, error, indx;
|
||||
|
||||
indx = -1;
|
||||
p = td->td_proc;
|
||||
fdp = p->p_fd;
|
||||
pdp = p->p_pd;
|
||||
|
||||
|
@ -1229,8 +1231,6 @@ kern_openat(struct thread *td, int dirfd, const char *path,
|
|||
* If we haven't already installed the FD (for dupfdopen), do so now.
|
||||
*/
|
||||
if (indx == -1) {
|
||||
struct filecaps *fcaps;
|
||||
|
||||
#ifdef CAPABILITIES
|
||||
if ((nd.ni_resflags & NIRES_STRICTREL) != 0)
|
||||
fcaps = &nd.ni_filecaps;
|
||||
|
|
Loading…
Reference in a new issue