summaryrefslogtreecommitdiff
path: root/libiohelp
diff options
context:
space:
mode:
Diffstat (limited to 'libiohelp')
-rw-r--r--libiohelp/ChangeLog7
-rw-r--r--libiohelp/iouser-reauth.c8
-rw-r--r--libiohelp/return-buffer.c1
3 files changed, 12 insertions, 4 deletions
diff --git a/libiohelp/ChangeLog b/libiohelp/ChangeLog
index 74cda5d6..0388b756 100644
--- a/libiohelp/ChangeLog
+++ b/libiohelp/ChangeLog
@@ -1,3 +1,10 @@
+1999-07-11 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * return-buffer.c: Include <sys/mman.h>.
+
+ * iouser-reauth.c (iohelp_reauth): Cast first arg to munmap
+ correctly.
+
1999-07-10 Roland McGrath <roland@baalperazim.frob.com>
* iouser-reauth.c: Add #include <sys/mman.h> for munmap decl.
diff --git a/libiohelp/iouser-reauth.c b/libiohelp/iouser-reauth.c
index 31dc62d4..3514b5d8 100644
--- a/libiohelp/iouser-reauth.c
+++ b/libiohelp/iouser-reauth.c
@@ -82,13 +82,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)
- munmap (gen_uids, genuidlen * sizeof (uid_t));
+ munmap ((caddr_t) gen_uids, genuidlen * sizeof (uid_t));
if (ggbuf != gen_gids)
- munmap (gen_gids, gengidlen * sizeof (uid_t));
+ munmap ((caddr_t) gen_gids, gengidlen * sizeof (uid_t));
if (aubuf != aux_uids)
- munmap (aux_uids, auxuidlen * sizeof (uid_t));
+ munmap ((caddr_t) aux_uids, auxuidlen * sizeof (uid_t));
if (agbuf != aux_gids)
- munmap (aux_gids, auxgidlen * sizeof (uid_t));
+ munmap ((caddr_t) aux_gids, auxgidlen * sizeof (uid_t));
if (err)
{
diff --git a/libiohelp/return-buffer.c b/libiohelp/return-buffer.c
index 83a34299..3095dfb6 100644
--- a/libiohelp/return-buffer.c
+++ b/libiohelp/return-buffer.c
@@ -22,6 +22,7 @@
#include <string.h>
#include <mach.h>
+#include <sys/mman.h>
#include "iohelp.h"