diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 17:24:34 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 17:24:34 +0000 |
commit | 8d1b2892425dc0e8380585cb3a3c06cada0a7725 (patch) | |
tree | 695466156fe639fda951f1149293a0cf450408f4 | |
parent | 1b6d5bca296e2b4b9be9cdc74e7767ccddc6af85 (diff) |
(_pager_do_write_request): Use new ports routines.
-rw-r--r-- | libpager/data-return.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpager/data-return.c b/libpager/data-return.c index 0bc6323a..13ce28f5 100644 --- a/libpager/data-return.c +++ b/libpager/data-return.c @@ -1,5 +1,5 @@ /* Implementation of memory_object_data_return 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 @@ -47,7 +47,8 @@ _pager_do_write_request (mach_port_t object, int wakeup; int omitdata = 0; - if (!(p = ports_check_port_type (object, pager_port_type))) + p = ports_lookup_port (0, object, _pager_class); + if (!p) return EOPNOTSUPP; /* sanity checks -- we don't do multi-page requests yet. */ @@ -190,7 +191,7 @@ _pager_do_write_request (mach_port_t object, mutex_unlock (&p->interlock); out: - ports_done_with_port (p); + ports_drop_ref (p); return 0; } |