From 4337a28d8ce4f2b76c9fe56e1273c23d0a19b5b0 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 10 May 1996 00:31:47 +0000 Subject: (make_sock_user): Use new ports_create_port call. --- pfinet/misc.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'pfinet') 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; -- cgit v1.2.3