summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 17:25:40 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 17:25:40 +0000
commitb74f931a1cab53d9be4822058872492242c5ccda (patch)
tree3012b1d61ea1203e724d1424b4e3761b036bbe77
parent8d1b2892425dc0e8380585cb3a3c06cada0a7725 (diff)
(_pager_seqnos_memory_object_data_unlock): Use new ports routines.
-rw-r--r--libpager/data-unlock.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libpager/data-unlock.c b/libpager/data-unlock.c
index 5ee676b7..a69ed0fe 100644
--- a/libpager/data-unlock.c
+++ b/libpager/data-unlock.c
@@ -1,5 +1,5 @@
/* Implementation of memory_object_data_unlock 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
@@ -32,7 +32,8 @@ _pager_seqnos_memory_object_data_unlock (mach_port_t object,
struct pager *p;
volatile int err;
- if (!(p = ports_check_port_type (object, pager_port_type)))
+ p = ports_lookup_port (0, object, _ports_class);
+ if (!p)
return EOPNOTSUPP;
mutex_lock (&p->interlock);
@@ -83,7 +84,7 @@ _pager_seqnos_memory_object_data_unlock (mach_port_t object,
_pager_mark_next_request_error (p, offset, length, err);
}
out:
- ports_done_with_port (p);
+ ports_drop_ref (p);
return 0;
}