summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 17:32:13 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 17:32:13 +0000
commit20ab2dc8a2b3d801f5ddc513eb89ae4e484fcf2f (patch)
tree175cb723e7c84d143326d5ac4151f292cd7e5688
parent848ce2c29e5086a5df2e57491b53f96608db5680 (diff)
(_pager_free_structure): Use new ports functions.
-rw-r--r--libpager/object-terminate.c5
1 files changed, 3 insertions, 2 deletions
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;
}