From 20ab2dc8a2b3d801f5ddc513eb89ae4e484fcf2f Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 20 Jun 1995 17:32:13 +0000 Subject: (_pager_free_structure): Use new ports functions. --- libpager/object-terminate.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libpager') diff --git a/libpager/object-terminate.c b/libpager/object-terminate.c index 571e656a..4bd93d84 100644 --- a/libpager/object-terminate.c +++ b/libpager/object-terminate.c @@ -29,7 +29,8 @@ _pager_seqnos_memory_object_terminate (mach_port_t object, { struct pager *p; - if (!(p = ports_check_port_type (object, pager_port_type))) + p = ports_lookup_port (0, object, _ports_class); + if (!p) return EOPNOTSUPP; if (control != p->memobjcntl) @@ -74,7 +75,7 @@ _pager_seqnos_memory_object_terminate (mach_port_t object, mutex_unlock (&p->interlock); out: - ports_done_with_port (p); + ports_drop_ref (p); return 0; } -- cgit v1.2.3