aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/streams/streams.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/dev/streams/streams.c
parent1bd6f83d4d49a87f27dbfe50f9717a182e9f1f47 (diff)
Notes
Diffstat (limited to 'sys/dev/streams/streams.c')
-rw-r--r--sys/dev/streams/streams.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c
index e1f4ae81d3da..039930e4287c 100644
--- a/sys/dev/streams/streams.c
+++ b/sys/dev/streams/streams.c
@@ -274,7 +274,7 @@ streamsopen(dev_t dev, int oflags, int devtype, struct thread *td)
}
FILEDESC_LOCK(p->p_fd);
- fp->f_data = (caddr_t)so;
+ fp->un_data.socket = so;
fp->f_flag = FREAD|FWRITE;
fp->f_ops = &svr4_netops;
fp->f_type = DTYPE_SOCKET;
@@ -357,7 +357,7 @@ svr4_stream_get(fp)
if (fp == NULL || fp->f_type != DTYPE_SOCKET)
return NULL;
- so = (struct socket *) fp->f_data;
+ so = fp->un_data.socket;
/*
* mpfixme: lock socketbuffer here
@@ -395,7 +395,7 @@ svr4_delete_socket(p, fp)
struct file *fp;
{
struct svr4_sockcache_entry *e;
- void *cookie = ((struct socket *) fp->f_data)->so_emuldata;
+ void *cookie = fp->un_data.socket->so_emuldata;
while (svr4_str_initialized != 2) {
if (atomic_cmpset_acq_int(&svr4_str_initialized, 0, 1)) {
@@ -418,7 +418,7 @@ svr4_delete_socket(p, fp)
static int
svr4_soo_close(struct file *fp, struct thread *td)
{
- struct socket *so = (struct socket *)fp->f_data;
+ struct socket *so = fp->un_data.socket;
/* CHECKUNIT_DIAG(ENXIO);*/