From ddf9ef103e0a611c9a01425a28baf8a612b0d114 Mon Sep 17 00:00:00 2001 From: dillon Date: Sun, 12 Jan 2003 01:37:13 +0000 Subject: Change struct file f_data to un_data, a union of the correct struct pointer types, and remove a huge number of casts from code using it. Change struct xfile xf_data to xun_data (ABI is still compatible). If we need to add a #define for f_data and xf_data we can, but I don't think it will be necessary. There are no operational changes in this commit. --- sys/netsmb/smb_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netsmb/smb_dev.c') diff --git a/sys/netsmb/smb_dev.c b/sys/netsmb/smb_dev.c index 9a132aa..0500c62 100644 --- a/sys/netsmb/smb_dev.c +++ b/sys/netsmb/smb_dev.c @@ -420,7 +420,7 @@ smb_dev2share(int fd, int mode, struct smb_cred *scred, fp = nsmb_getfp(scred->scr_td->td_proc->p_fd, fd, FREAD | FWRITE); if (fp == NULL) return EBADF; - vp = (struct vnode*)fp->f_data; + vp = fp->un_data.vnode; if (vp == NULL) { fdrop(fp, curthread); return EBADF; -- cgit v1.1