summaryrefslogtreecommitdiff
path: root/libshouldbeinlibc/idvec-auth.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:52:06 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:52:06 +0000
commit157a9dcf73718cf04690b1646995549a52cee43d (patch)
tree7f8e23a2bdff30f8d6c9fe79155f6cad48822375 /libshouldbeinlibc/idvec-auth.c
parentd8f2d7d71da7a39b7a70866d834658b1a090eb38 (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* 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.
Diffstat (limited to 'libshouldbeinlibc/idvec-auth.c')
-rw-r--r--libshouldbeinlibc/idvec-auth.c10
1 files changed, 5 insertions, 5 deletions
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 <miles@gnu.ai.mit.edu>
@@ -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;
}