From 1a7b9125e9cff298fe331928a91572ed08ecc4d8 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 10 May 1996 00:30:25 +0000 Subject: (S_socket_create_address): Use new ports_create_port call. --- pfinet/socket-ops.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'pfinet') diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c index c5c460b3..968f927a 100644 --- a/pfinet/socket-ops.c +++ b/pfinet/socket-ops.c @@ -298,13 +298,16 @@ S_socket_create_address (mach_port_t server, mach_msg_type_name_t *addr_port_type) { struct sock_addr *addr; + error_t err; if (sockaddr_type != AF_INET) return EAFNOSUPPORT; - addr = ports_allocate_port (pfinet_bucket, - sizeof (struct sock_addr) + data_len, - addrport_class); + err = ports_create_port (addrport_class, pfinet_bucket, + sizeof (struct sock_addr) + data_len, &addr); + if (err) + return err; + addr->len = data_len; bcopy (data, addr->address, data_len); -- cgit v1.2.3