summaryrefslogtreecommitdiff
path: root/pfinet
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-10 00:33:43 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-10 00:33:43 +0000
commit059b3079a911f540f3156e75546f38e2f526b628 (patch)
tree3fc647106dfe46b18ecadab9ea49588735fbc2c9 /pfinet
parent4337a28d8ce4f2b76c9fe56e1273c23d0a19b5b0 (diff)
(make_sockaddr_port): Use new ports_create_port call.
Diffstat (limited to 'pfinet')
-rw-r--r--pfinet/misc.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/pfinet/misc.c b/pfinet/misc.c
index 74772a68..9b9086e0 100644
--- a/pfinet/misc.c
+++ b/pfinet/misc.c
@@ -57,9 +57,10 @@ make_sockaddr_port (struct socket *sock,
if (err)
return err;
- addrstruct = ports_allocate_port (pfinet_bucket,
- sizeof (struct sock_addr) + buflen,
- addrport_class);
+ err = ports_create_port (addrport_class, pfinet_bucket,
+ sizeof (struct sock_addr) + buflen, &addrstruct);
+ if (err)
+ return err;
addrstruct->len = buflen;
bcopy (buf, addrstruct->address, buflen);
*addr = ports_get_right (addrstruct);