aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_filio.c
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>2003-01-12 01:37:13 +0000
committerMatthew Dillon <dillon@FreeBSD.org>2003-01-12 01:37:13 +0000
commitcd72f2180bfff020d03180e6eba1c3a0e0125468 (patch)
tree19da0d56c468b8e0f6d0361d7d39157f561aa69f /sys/compat/svr4/svr4_filio.c
parent1bd6f83d4d49a87f27dbfe50f9717a182e9f1f47 (diff)
downloadsrc-cd72f2180bfff020d03180e6eba1c3a0e0125468.tar.gz
src-cd72f2180bfff020d03180e6eba1c3a0e0125468.zip
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.
Notes
Notes: svn path=/head/; revision=109123
Diffstat (limited to 'sys/compat/svr4/svr4_filio.c')
-rw-r--r--sys/compat/svr4/svr4_filio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/svr4/svr4_filio.c b/sys/compat/svr4/svr4_filio.c
index f4b0950ec347..dbbdfdb868d2 100644
--- a/sys/compat/svr4/svr4_filio.c
+++ b/sys/compat/svr4/svr4_filio.c
@@ -115,7 +115,7 @@ svr4_sys_read(td, uap)
}
if (fp->f_type == DTYPE_SOCKET) {
- so = (struct socket *)fp->f_data;
+ so = fp->un_data.socket;
DPRINTF(("fd %d is a socket\n", uap->fd));
if (so->so_state & SS_ASYNC) {
DPRINTF(("fd %d is an ASYNC socket!\n", uap->fd));