diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:32:42 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:32:42 +0000 |
commit | 38081dee4c7adb8e3bf0a314537c62457d281475 (patch) | |
tree | 1cb192bf6db53aa9b5052fd77b473a22592eba03 | |
parent | ed7c61af9d781082859f0a58d8263f85dc81d42d (diff) |
(device_open_reply): Use new ports_create_port.
-rw-r--r-- | term/devio.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/term/devio.c b/term/devio.c index c0d26ac0..671d63d1 100644 --- a/term/devio.c +++ b/term/devio.c @@ -459,9 +459,11 @@ device_open_reply (mach_port_t replyport, assert (phys_reply_writes == MACH_PORT_NULL); assert (phys_reply_writes_pi == 0); phys_device = device; - phys_reply_writes_pi = ports_allocate_port (term_bucket, - sizeof (struct port_info), - phys_reply_class); + errno = ports_create_port (phys_reply_class, term_bucket, + sizeof (struct port_info), + &phys_reply_writes_pi); + if (errno) + return errno; phys_reply_writes = ports_get_right (phys_reply_writes_pi); mach_port_insert_right (mach_task_self (), phys_reply_writes, phys_reply_writes, MACH_MSG_TYPE_MAKE_SEND); |