make compile, add missing { and variable declaration.

This commit is contained in:
alfred 2002-01-19 03:48:38 +00:00
parent 3bdb474052
commit 832c019c2c

View File

@ -603,7 +603,7 @@ svr4_sys_fchroot(td, uap)
struct svr4_sys_fchroot_args *uap;
{
struct filedesc *fdp = td->td_proc->p_fd;
struct vnode *vp;
struct vnode *vp, *vpold;
struct file *fp;
int error;
@ -618,7 +618,7 @@ svr4_sys_fchroot(td, uap)
else
error = VOP_ACCESS(vp, VEXEC, td->td_proc->p_ucred, td);
VOP_UNLOCK(vp, 0, td);
if (error)
if (error) {
fdrop(fp, td);
return error;
}