From 806dfe03abda27b089f45eea4da742490c155595 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 20:24:02 +0000 Subject: 2001-04-01 Neal H Walfield * users.c (S_termctty_open_terminal): Use iohelp_create_empty_iouser. --- term/users.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/term/users.c b/term/users.c index 1b50f3b9..02bc4dee 100644 --- a/term/users.c +++ b/term/users.c @@ -378,6 +378,7 @@ S_termctty_open_terminal (mach_port_t arg, { error_t err; mach_port_t new_realnode; + struct iouser *user; struct trivfs_protid *newcred; struct port_info *pi = ports_lookup_port (term_bucket, arg, cttyid_class); @@ -390,9 +391,9 @@ S_termctty_open_terminal (mach_port_t arg, if (!err) { - err = trivfs_open (termctl, - iohelp_create_iouser (make_idvec (), make_idvec ()), - flags, new_realnode, &newcred); + err = iohelp_create_empty_iouser (&user); + if (! err) + err = trivfs_open (termctl, user, flags, new_realnode, &newcred); if (!err) { *result = ports_get_right (newcred); -- cgit v1.2.3