--- src/sys/vm/vm_mmap.c 2004/10/12 19:29:34 1.21 +++ src/sys/vm/vm_mmap.c 2005/06/22 01:33:34 1.22 @@ -243,7 +243,7 @@ kern_mmap(caddr_t uaddr, size_t ulen, in * sure it is of appropriate type. */ if (((unsigned) fd) >= fdp->fd_nfiles || - (fp = fdp->fd_ofiles[fd]) == NULL) + (fp = fdp->fd_files[fd].fp) == NULL) return (EBADF); if (fp->f_type != DTYPE_VNODE) return (EINVAL); @@ -510,7 +510,7 @@ munmapfd(p, fd) /* * XXX should unmap any regions mapped to this file */ - p->p_fd->fd_ofileflags[fd] &= ~UF_MAPPED; + p->p_fd->fd_files[fd].fileflags &= ~UF_MAPPED; } #endif