diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-10 00:31:47 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-10 00:31:47 +0000 |
commit | 4337a28d8ce4f2b76c9fe56e1273c23d0a19b5b0 (patch) | |
tree | 898a9c641e099c8e6b9a52e4b0373628168e6f10 /pfinet | |
parent | 1a7b9125e9cff298fe331928a91572ed08ecc4d8 (diff) |
(make_sock_user): Use new ports_create_port call.
Diffstat (limited to 'pfinet')
-rw-r--r-- | pfinet/misc.c | 8 |
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; |