summaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_net.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-26 23:32:09 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-26 23:32:09 +0000
commit5030cab33594e9a7ab9c2b55b0714e262d6a7dfb (patch)
tree2dba90f6cb6ecb6f83bf218ac49024c311940b4d /sys/compat/svr4/svr4_net.c
parent26eaeb7b6ef67753ddb3ce44b8a4cc03d92334b8 (diff)
From NetBSD: update to 960217 sources
Diffstat (limited to 'sys/compat/svr4/svr4_net.c')
-rw-r--r--sys/compat/svr4/svr4_net.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/compat/svr4/svr4_net.c b/sys/compat/svr4/svr4_net.c
index e46b95c12df..a425818e2b0 100644
--- a/sys/compat/svr4/svr4_net.c
+++ b/sys/compat/svr4/svr4_net.c
@@ -1,4 +1,5 @@
-/* $NetBSD: svr4_net.c,v 1.5 1995/10/14 20:24:38 christos Exp $ */
+/* $OpenBSD: svr4_net.c,v 1.3 1996/02/26 23:31:59 niklas Exp $ */
+/* $NetBSD: svr4_net.c,v 1.6 1996/02/04 02:01:07 christos Exp $ */
/*
* Copyright (c) 1994 Christos Zoulas
@@ -153,7 +154,7 @@ svr4_netopen(dev, flag, mode, p)
st = malloc(sizeof(struct svr4_strm), M_NETADDR, M_WAITOK);
/* XXX: This is unused; ask for a field and make this legal */
- so->so_tpcb = (caddr_t) st;
+ so->so_internal = st;
st->s_cmd = ~0;
fp->f_data = (caddr_t)so;
DPRINTF(("ok);\n"));
@@ -168,6 +169,6 @@ svr4_netclose(fp, p)
struct proc *p;
{
struct socket *so = (struct socket *) fp->f_data;
- free((char *) so->so_tpcb, M_NETADDR);
+ free(so->so_internal, M_NETADDR);
return soo_close(fp, p);
}