diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:50:29 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:50:29 +0000 |
commit | 0573b5a9f199716eba80f5bad9d50b4e109cfbe6 (patch) | |
tree | 15a37bbb26183980e30a7a972fad1031ea6f4e38 /libiohelp/iouser-reauth.c | |
parent | ebbe233e5686d50ad90cb6131d49fd94519d86fb (diff) |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* iouser-reauth.c (iohelp_reauth): Use munmap instead of
vm_deallocate.
Diffstat (limited to 'libiohelp/iouser-reauth.c')
-rw-r--r-- | libiohelp/iouser-reauth.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/libiohelp/iouser-reauth.c b/libiohelp/iouser-reauth.c index a41ea734..b5db7614 100644 --- a/libiohelp/iouser-reauth.c +++ b/libiohelp/iouser-reauth.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1996 Free Software Foundation + Copyright (C) 1996, 1999 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 @@ -81,17 +81,13 @@ struct iouser *iohelp_reauth (auth_t authserver, mach_port_t rend_port, err = idvec_set_ids (new->gids, gen_gids, gengidlen); if (gubuf != gen_uids) - vm_deallocate (mach_task_self (), (u_int) gen_uids, - genuidlen * sizeof (uid_t)); + munmap (gen_uids, genuidlen * sizeof (uid_t)); if (ggbuf != gen_gids) - vm_deallocate (mach_task_self (), (u_int) gen_gids, - gengidlen * sizeof (uid_t)); + munmap (gen_gids, gengidlen * sizeof (uid_t)); if (aubuf != aux_uids) - vm_deallocate (mach_task_self (), (u_int) aux_uids, - auxuidlen * sizeof (uid_t)); + munmap (aux_uids, auxuidlen * sizeof (uid_t)); if (agbuf != aux_gids) - vm_deallocate (mach_task_self (), (u_int) aux_gids, - auxgidlen * sizeof (uid_t)); + munmap (aux_gids, auxgidlen * sizeof (uid_t)); if (err) { |