summaryrefslogtreecommitdiffstats
path: root/sys/i386/ibcs2/ibcs2_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/ibcs2/ibcs2_misc.c')
-rw-r--r--sys/i386/ibcs2/ibcs2_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/i386/ibcs2/ibcs2_misc.c b/sys/i386/ibcs2/ibcs2_misc.c
index b909140..75796b0 100644
--- a/sys/i386/ibcs2/ibcs2_misc.c
+++ b/sys/i386/ibcs2/ibcs2_misc.c
@@ -323,7 +323,7 @@ ibcs2_getdents(td, uap)
fdrop(fp, td);
return (EBADF);
}
- vp = (struct vnode *)fp->f_data;
+ vp = fp->un_data.vnode;
if (vp->v_type != VDIR) { /* XXX vnode readdir op should do this */
fdrop(fp, td);
return (EINVAL);
@@ -480,7 +480,7 @@ ibcs2_read(td, uap)
fdrop(fp, td);
return (EBADF);
}
- vp = (struct vnode *)fp->f_data;
+ vp = fp->un_data.vnode;
if (vp->v_type != VDIR) {
fdrop(fp, td);
return read(td, (struct read_args *)uap);
OpenPOWER on IntegriCloud