summaryrefslogtreecommitdiff
path: root/term
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-06-16 20:24:02 +0000
committerRoland McGrath <roland@gnu.org>2001-06-16 20:24:02 +0000
commit806dfe03abda27b089f45eea4da742490c155595 (patch)
treee33d64b52088fd181bd76774df11974c3af53f30 /term
parentd4a374818f3931874c4de35270e80f6c7204ba14 (diff)
2001-04-01 Neal H Walfield <neal@cs.uml.edu>
* users.c (S_termctty_open_terminal): Use iohelp_create_empty_iouser.
Diffstat (limited to 'term')
-rw-r--r--term/users.c7
1 files 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);