summaryrefslogtreecommitdiff
path: root/libps
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2000-02-11 22:37:18 +0000
committerRoland McGrath <roland@gnu.org>2000-02-11 22:37:18 +0000
commit424fec0d5dd87b507860a1f98aba66f9827ac6f1 (patch)
tree897262bfa4aac25dddc9e23dfd93eb6437dfb25f /libps
parent3f3eb4a13b9550f115759a533771e8d9ee423fd7 (diff)
2000-02-11 Roland McGrath <roland@baalperazim.frob.com>
* context.c (ps_context_find_tty_by_cttyid): Use the ttys_by_cttyid hash table, not the ttys hash table.
Diffstat (limited to 'libps')
-rw-r--r--libps/context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libps/context.c b/libps/context.c
index eddbc50c..a9cab6e7 100644
--- a/libps/context.c
+++ b/libps/context.c
@@ -1,6 +1,6 @@
/* The ps_context type, for per-procserver and somewhat global state.
- Copyright (C) 1995,96,99 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,99,2000 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
@@ -151,7 +151,7 @@ ps_context_find_tty_by_cttyid (struct ps_context *pc, mach_port_t cttyid_port,
}
}
- return lookup (cttyid_port, pc->ttys, create, (void **)tty);
+ return lookup (cttyid_port, pc->ttys_by_cttyid, create, (void **)tty);
}
/* Find a ps_user for the user referred to by UID, and return it in U. */