summaryrefslogtreecommitdiff
path: root/libiohelp
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:50:29 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:50:29 +0000
commit0573b5a9f199716eba80f5bad9d50b4e109cfbe6 (patch)
tree15a37bbb26183980e30a7a972fad1031ea6f4e38 /libiohelp
parentebbe233e5686d50ad90cb6131d49fd94519d86fb (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')
-rw-r--r--libiohelp/ChangeLog5
-rw-r--r--libiohelp/iouser-reauth.c14
2 files changed, 10 insertions, 9 deletions
diff --git a/libiohelp/ChangeLog b/libiohelp/ChangeLog
index 9fcf3a5b..b8561ac0 100644
--- a/libiohelp/ChangeLog
+++ b/libiohelp/ChangeLog
@@ -1,3 +1,8 @@
+1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * iouser-reauth.c (iohelp_reauth): Use munmap instead of
+ vm_deallocate.
+
1998-08-21 Roland McGrath <roland@baalperazim.frob.com>
* Makefile (SRCS): Add return-buffer.c.
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)
{