summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-27 17:38:57 +0000
committerMiles Bader <miles@gnu.org>1996-01-27 17:38:57 +0000
commit98e39413b35e9096d79706515d7d3604b014fdce (patch)
treee408ac339d62552bb6791d388de6ad5ee586768e
parent15c46a48b066491c30dd950e9e36b4b1c95d8740 (diff)
(devio_assert_dtr): Use ports_create_port instead of ports_allocate_port.
-rw-r--r--term/devio.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/term/devio.c b/term/devio.c
index 758a5722..8584cbcd 100644
--- a/term/devio.c
+++ b/term/devio.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -403,8 +403,12 @@ devio_assert_dtr ()
assert (phys_reply == MACH_PORT_NULL);
assert (phys_reply_pi == 0);
- phys_reply_pi = ports_allocate_port (term_bucket, sizeof (struct port_info),
- phys_reply_class);
+
+ err = ports_create_port (phys_reply_class, term_bucket,
+ sizeof (struct port_info), &phys_reply_pi);
+ if (err)
+ return err;
+
phys_reply = ports_get_right (phys_reply_pi);
mach_port_insert_right (mach_task_self (), phys_reply, phys_reply,
MACH_MSG_TYPE_MAKE_SEND);