summaryrefslogtreecommitdiff
path: root/libpager
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 17:31:20 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 17:31:20 +0000
commit848ce2c29e5086a5df2e57491b53f96608db5680 (patch)
tree1be134068b63223e1072ea418dd67f548943778d /libpager
parent889d0ec1d08204c1b2c9a7eaf4c1610a60989074 (diff)
(_pager_seqnos_memory_object_init): Use new ports functions.
Diffstat (limited to 'libpager')
-rw-r--r--libpager/object-init.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpager/object-init.c b/libpager/object-init.c
index 4031f8d0..b2b0a27f 100644
--- a/libpager/object-init.c
+++ b/libpager/object-init.c
@@ -1,5 +1,5 @@
/* Implementation of memory_object_init for pager library
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -30,7 +30,8 @@ _pager_seqnos_memory_object_init (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 (pagesize != __vm_page_size)
@@ -74,6 +75,6 @@ _pager_seqnos_memory_object_init (mach_port_t object,
mutex_unlock (&p->interlock);
out:
- ports_done_with_port (p);
+ ports_drop_ref (p);
return 0;
}