diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 17:41:08 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 17:41:08 +0000 |
commit | 71ddbf47cab45242a320d066b8e5652a802b028f (patch) | |
tree | 19930186c4755414d88ac231986e7821ab7fa0f0 /libpager/chg-compl.c | |
parent | cb0f4ee18de48ea8b9e028fdb1df299cef343c76 (diff) |
(_pager_seqnos_memory_object_change_completed): Use new ports
routines.
Diffstat (limited to 'libpager/chg-compl.c')
-rw-r--r-- | libpager/chg-compl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libpager/chg-compl.c b/libpager/chg-compl.c index 6080bf2d..b26d9647 100644 --- a/libpager/chg-compl.c +++ b/libpager/chg-compl.c @@ -1,5 +1,5 @@ /* Completion of memory_object_change_attributes - 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,8 +30,8 @@ _pager_seqnos_memory_object_change_completed (mach_port_t obj, struct pager *p; struct attribute_request *ar; - - if (!(p = ports_check_port_type (obj, pager_port_type))) + p = ports_lookup_port (0, obj, _pager_class); + if (!p) { printf ("Bad change completed\n"); return EOPNOTSUPP; @@ -50,7 +50,7 @@ _pager_seqnos_memory_object_change_completed (mach_port_t obj, _pager_release_seqno (p, seq); mutex_unlock (&p->interlock); - ports_done_with_port (p); + ports_port_deref (p); return 0; } |