From 2dc6d208b57b3129d389cb61b8d6ad97e521db34 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Wed, 8 Nov 1995 20:32:51 +0000 Subject: Formerly misc.c.~3~ --- pfinet/misc.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pfinet') diff --git a/pfinet/misc.c b/pfinet/misc.c index b2c3df28..7ad19c8e 100644 --- a/pfinet/misc.c +++ b/pfinet/misc.c @@ -19,6 +19,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include "pfinet.h" +#include /* Create a sock_user structure, initialized from SOCK and ISROOT. */ struct sock_user * @@ -56,7 +57,7 @@ make_sockaddr_port (struct socket *sock, addrstruct = ports_allocate_port (pfinet_bucket, sizeof (struct sock_addr) + buflen, - addrport_clas); + addrport_class); addrstruct->len = buflen; bcopy (buf, addrstruct->address, buflen); *addr = ports_get_right (addr); @@ -94,9 +95,10 @@ sock_alloc (void) struct socket *sock; sock = malloc (sizeof (struct socket)); - bzero (sock, sizoef (struct socket)); + bzero (sock, sizeof (struct socket)); sock->state = SS_UNCONNECTED; + return sock; } static inline void sock_release_peer(struct socket *peer) -- cgit v1.2.3