From 0573b5a9f199716eba80f5bad9d50b4e109cfbe6 Mon Sep 17 00:00:00 2001
From: Thomas Bushnell <thomas@gnu.org>
Date: Sat, 3 Jul 1999 23:50:29 +0000
Subject: 1999-07-03  Thomas Bushnell, BSG  <tb@mit.edu>

	* iouser-reauth.c (iohelp_reauth): Use munmap instead of
	vm_deallocate.
---
 libiohelp/ChangeLog       |  5 +++++
 libiohelp/iouser-reauth.c | 14 +++++---------
 2 files changed, 10 insertions(+), 9 deletions(-)

(limited to 'libiohelp')

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)
     {
-- 
cgit v1.2.3