From 4b8c3a57654a54c370e35d30ba43f59309759ea3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sun, 11 Jul 1999 06:02:55 +0000 Subject: 1999-07-11 Thomas Bushnell, BSG * 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. (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. --- libshouldbeinlibc/portinfo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libshouldbeinlibc/portinfo.c') diff --git a/libshouldbeinlibc/portinfo.c b/libshouldbeinlibc/portinfo.c index 19e954c8..b04014da 100644 --- a/libshouldbeinlibc/portinfo.c +++ b/libshouldbeinlibc/portinfo.c @@ -121,7 +121,7 @@ print_port_info (mach_port_t name, mach_port_type_t type, task_t task, for (i = 1; i < members_len; i++) fprintf (stream, hex_names ? ", %#x" : ", %u", members[i]); fprintf (stream, ")"); - munmap (members, members_len * sizeof *members); + munmap ((caddr_t) members, members_len * sizeof *members); } } } @@ -148,8 +148,8 @@ print_task_ports_info (task_t task, mach_port_type_t only, if (types[i] & only) print_port_info (names[i], types[i], task, show, stream); - munmap (names, names_len * sizeof *names); - munmap (types, types_len * sizeof *types); + munmap ((caddr_t) names, names_len * sizeof *names); + munmap ((caddr_t) types, types_len * sizeof *types); return 0; } -- cgit v1.2.3