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/nfsserver/nfs_syscalls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/nfsserver/nfs_syscalls.c') diff --git a/sys/nfsserver/nfs_syscalls.c b/sys/nfsserver/nfs_syscalls.c index 80271cd..42baaa0 100644 --- a/sys/nfsserver/nfs_syscalls.c +++ b/sys/nfsserver/nfs_syscalls.c @@ -200,7 +200,7 @@ nfssvc_addsock(struct file *fp, struct sockaddr *mynam, struct thread *td) struct socket *so; int error, s; - so = (struct socket *)fp->f_data; + so = fp->un_data.socket; #if 0 tslp = NULL; /* -- cgit v1.1