summaryrefslogtreecommitdiff
path: root/pfinet/misc.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-10 00:31:47 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-10 00:31:47 +0000
commit4337a28d8ce4f2b76c9fe56e1273c23d0a19b5b0 (patch)
tree898a9c641e099c8e6b9a52e4b0373628168e6f10 /pfinet/misc.c
parent1a7b9125e9cff298fe331928a91572ed08ecc4d8 (diff)
(make_sock_user): Use new ports_create_port call.
Diffstat (limited to 'pfinet/misc.c')
-rw-r--r--pfinet/misc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/pfinet/misc.c b/pfinet/misc.c
index 1bae1e92..74772a68 100644
--- a/pfinet/misc.c
+++ b/pfinet/misc.c
@@ -27,9 +27,11 @@ make_sock_user (struct socket *sock, int isroot)
{
struct sock_user *user;
- user = ports_allocate_port (pfinet_bucket,
- sizeof (struct sock_user),
- socketport_class);
+ errno = ports_create_port (pfinet_bucket,
+ sizeof (struct sock_user),
+ socketport_class, &user);
+ if (errno)
+ return 0;
user->isroot = isroot;
user->sock = sock;