From 424fec0d5dd87b507860a1f98aba66f9827ac6f1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Fri, 11 Feb 2000 22:37:18 +0000 Subject: 2000-02-11 Roland McGrath * context.c (ps_context_find_tty_by_cttyid): Use the ttys_by_cttyid hash table, not the ttys hash table. --- libps/context.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libps') 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 @@ -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. */ -- cgit v1.2.3