From 1e91e9c9ce58391a7cbac72b073028966396998d Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 08:05:43 +0000 Subject: 1999-07-11 Thomas Bushnell, BSG * return-buffer.c: Include . * iouser-reauth.c (iohelp_reauth): Cast first arg to munmap correctly. --- libiohelp/ChangeLog | 7 +++++++ libiohelp/iouser-reauth.c | 8 ++++---- libiohelp/return-buffer.c | 1 + 3 files changed, 12 insertions(+), 4 deletions(-) (limited to 'libiohelp') 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 + + * return-buffer.c: Include . + + * iouser-reauth.c (iohelp_reauth): Cast first arg to munmap + correctly. + 1999-07-10 Roland McGrath * iouser-reauth.c: Add #include 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 #include +#include #include "iohelp.h" -- cgit v1.2.3