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/portxlate.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'libshouldbeinlibc/portxlate.c') diff --git a/libshouldbeinlibc/portxlate.c b/libshouldbeinlibc/portxlate.c index 9f222539..86a36101 100644 --- a/libshouldbeinlibc/portxlate.c +++ b/libshouldbeinlibc/portxlate.c @@ -60,8 +60,10 @@ port_name_xlator_create (mach_port_t from_task, mach_port_t to_task, } else { - munmap (x->to_names, x->to_names_len * sizeof (mach_port_t)); - munmap (x->to_types, x->to_types_len * sizeof (mach_port_type_t)); + munmap ((caddr_t) x->to_names, + x->to_names_len * sizeof (mach_port_t)); + munmap ((caddr_t) x->to_types, + x->to_types_len * sizeof (mach_port_type_t)); err = ENOMEM; } } @@ -85,8 +87,8 @@ port_name_xlator_free (struct port_name_xlator *x) mach_port_deallocate (mach_task_self (), x->ports[i]); free (x->ports); - munmap (x->to_names, x->to_names_len * sizeof (mach_port_t)); - munmap (x->to_types, x->to_types_len * sizeof (mach_port_type_t)); + munmap ((caddr_t) x->to_names, x->to_names_len * sizeof (mach_port_t)); + munmap ((caddr_t) x->to_types, x->to_types_len * sizeof (mach_port_type_t)); mach_port_deallocate (mach_task_self (), x->to_task); mach_port_deallocate (mach_task_self (), x->from_task); -- cgit v1.2.3