summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-11-08 20:32:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-11-08 20:32:51 +0000
commit2dc6d208b57b3129d389cb61b8d6ad97e521db34 (patch)
tree88acf061a6880ca947a59b4433efe099e37c6df5
parent96a951103fd85fc72c85b891e7ffee0a20d14904 (diff)
Formerly misc.c.~3~
-rw-r--r--pfinet/misc.c6
1 files changed, 4 insertions, 2 deletions
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 <string.h>
/* 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)