diff options
Diffstat (limited to 'libnetfs/release-protid.c')
-rw-r--r-- | libnetfs/release-protid.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libnetfs/release-protid.c b/libnetfs/release-protid.c index 3585021f..b1bac0eb 100644 --- a/libnetfs/release-protid.c +++ b/libnetfs/release-protid.c @@ -1,5 +1,5 @@ -/* - Copyright (C) 1996 Free Software Foundation, Inc. +/* + Copyright (C) 1996, 1999 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -19,17 +19,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ #include "netfs.h" +#include <sys/mman.h> void netfs_release_protid (void *arg) { struct protid *user = arg; - - netfs_drop_credential (user->credential); + + iohelp_free_iouser (user->user); if (user->shared_object) mach_port_deallocate (mach_task_self (), user->shared_object); if (user->mapped) - vm_deallocate (mach_task_self (), (vm_address_t) user->mapped, - vm_page_size); + munmap (user->mapped, vm_page_size); netfs_release_peropen (user->po); } |