From 157a9dcf73718cf04690b1646995549a52cee43d Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:52:06 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * fsysops.c (fsys_get_readonly): Use munmap instead of vm_deallocate. * idvec-auth.c (idvec_merge_auth): Likewise. * portinfo.c (print_port_info): Likewise. (print_task_ports_info): Likewise. * portxlate.c (port_name_xlator_create): Likewise. (port_name_xlator_free): Likewise. * xportinfo.c (print_xlated_task_ports_info): Likewise. --- libshouldbeinlibc/idvec-auth.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libshouldbeinlibc/idvec-auth.c') diff --git a/libshouldbeinlibc/idvec-auth.c b/libshouldbeinlibc/idvec-auth.c index d03233be..3131e61e 100644 --- a/libshouldbeinlibc/idvec-auth.c +++ b/libshouldbeinlibc/idvec-auth.c @@ -1,6 +1,6 @@ /* Idvec functions that interact with an auth server - Copyright (C) 1995, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1998, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -66,13 +66,13 @@ idvec_merge_auth (struct idvec *eff_uids, struct idvec *avail_uids, /* Deallocate any out-of-line memory we got back. */ if (_eff_uids != eff_uid_buf) - vm_deallocate (mach_task_self (), (vm_address_t)_eff_uids, num_eff_uids); + munmap (_eff_uids, num_eff_uids); if (_avail_uids != avail_uid_buf) - vm_deallocate (mach_task_self (), (vm_address_t)_avail_uids, num_avail_uids); + munmap (_avail_uids, num_avail_uids); if (_eff_gids != eff_gid_buf) - vm_deallocate (mach_task_self (), (vm_address_t)_eff_gids, num_eff_gids); + munmap (_eff_gids, num_eff_gids); if (_avail_gids != avail_gid_buf) - vm_deallocate (mach_task_self (), (vm_address_t)_avail_gids, num_avail_gids); + munmap (_avail_gids, num_avail_gids); return err; } -- cgit v1.2.3