diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 08:06:07 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 08:06:07 +0000 |
commit | 8a3e8261c7a4c8893cf66e30ce6f3a16d00490df (patch) | |
tree | 2a8c3cb78c34803471ceba4439d775190a0d6f76 /libshouldbeinlibc | |
parent | 1e91e9c9ce58391a7cbac72b073028966396998d (diff) |
1999-07-11 Thomas Bushnell, BSG <tb@mit.edu>
* ugids-argp.c (parse_opt): Clarify if-then-else structure by
adding more braces.
* portinfo.h: Include <sys/types.h>.
* portxlate.c: Likewise.
* portinfo.c: (print_port_info): Cast first arg of munmap correctly.
(print_task_ports_info): Likewise.
* xportinfo.c (print_xlated_task_ports_info): Likewise.
* idvec-auth.c (idvec_merge_auth): Likewise.
* portxlate.c (port_name_xlator_create): Likewise.
(port_name_xlator_free): Likewise.
Diffstat (limited to 'libshouldbeinlibc')
-rw-r--r-- | libshouldbeinlibc/ChangeLog | 5 | ||||
-rw-r--r-- | libshouldbeinlibc/idvec-auth.c | 8 | ||||
-rw-r--r-- | libshouldbeinlibc/portinfo.h | 1 | ||||
-rw-r--r-- | libshouldbeinlibc/portxlate.c | 1 |
4 files changed, 9 insertions, 6 deletions
diff --git a/libshouldbeinlibc/ChangeLog b/libshouldbeinlibc/ChangeLog index eee2ec95..385a0fea 100644 --- a/libshouldbeinlibc/ChangeLog +++ b/libshouldbeinlibc/ChangeLog @@ -3,8 +3,9 @@ * ugids-argp.c (parse_opt): Clarify if-then-else structure by adding more braces. - * portinfo.c (print_port_info): Cast first arg of munmap - correctly. + * portinfo.h: Include <sys/types.h>. + * portxlate.c: Likewise. + * portinfo.c: (print_port_info): Cast first arg of munmap correctly. (print_task_ports_info): Likewise. * xportinfo.c (print_xlated_task_ports_info): Likewise. * idvec-auth.c (idvec_merge_auth): Likewise. diff --git a/libshouldbeinlibc/idvec-auth.c b/libshouldbeinlibc/idvec-auth.c index b17233c8..22f2d559 100644 --- a/libshouldbeinlibc/idvec-auth.c +++ b/libshouldbeinlibc/idvec-auth.c @@ -67,13 +67,13 @@ idvec_merge_auth (struct idvec *eff_uids, struct idvec *avail_uids, /* Deallocate any out-of-line memory we got back. */ if (_eff_uids != eff_uid_buf) - munmap (_eff_uids, num_eff_uids); + munmap ((caddr_t) _eff_uids, num_eff_uids); if (_avail_uids != avail_uid_buf) - munmap (_avail_uids, num_avail_uids); + munmap ((caddr_t) _avail_uids, num_avail_uids); if (_eff_gids != eff_gid_buf) - munmap (_eff_gids, num_eff_gids); + munmap ((caddr_t) _eff_gids, num_eff_gids); if (_avail_gids != avail_gid_buf) - munmap (_avail_gids, num_avail_gids); + munmap ((caddr_t) _avail_gids, num_avail_gids); return err; } diff --git a/libshouldbeinlibc/portinfo.h b/libshouldbeinlibc/portinfo.h index 09d1643a..cc8d0730 100644 --- a/libshouldbeinlibc/portinfo.h +++ b/libshouldbeinlibc/portinfo.h @@ -24,6 +24,7 @@ #include <stdio.h> #include <errno.h> #include <mach.h> +#include <sys/types.h> #include <sys/mman.h> #include <portxlate.h> diff --git a/libshouldbeinlibc/portxlate.c b/libshouldbeinlibc/portxlate.c index 86a36101..d574cb2f 100644 --- a/libshouldbeinlibc/portxlate.c +++ b/libshouldbeinlibc/portxlate.c @@ -19,6 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <malloc.h> +#include <sys/types.h> #include <sys/mman.h> #include "portxlate.h" |