From 8d1b2892425dc0e8380585cb3a3c06cada0a7725 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 20 Jun 1995 17:24:34 +0000 Subject: (_pager_do_write_request): Use new ports routines. --- libpager/data-return.c | 7 ++++--- 1 file 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; } -- cgit v1.2.3