summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-10 00:30:25 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-10 00:30:25 +0000
commit1a7b9125e9cff298fe331928a91572ed08ecc4d8 (patch)
treebb5a8ed4146fae447acf1d962e1e3ee501cb1dec /pfinet
parent8fca749de21bed07fab243bc4a91aa142b59b6dc (diff)
(S_socket_create_address): Use new ports_create_port call.
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/socket-ops.c9
1 files changed, 6 insertions, 3 deletions
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);