diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 06:02:55 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-11 06:02:55 +0000 |
commit | 4b8c3a57654a54c370e35d30ba43f59309759ea3 (patch) | |
tree | 7c042a9a0054bed375fe940e0e96623bef1b3abf /libshouldbeinlibc/portxlate.c | |
parent | 251871b4158facbd4c92baf45b0456fdcc82cbb6 (diff) | |
download | hurd-4b8c3a57654a54c370e35d30ba43f59309759ea3.tar.gz hurd-4b8c3a57654a54c370e35d30ba43f59309759ea3.tar.bz2 hurd-4b8c3a57654a54c370e35d30ba43f59309759ea3.zip |
1999-07-11 Thomas Bushnell, BSG <tb@mit.edu>
* 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.
Diffstat (limited to 'libshouldbeinlibc/portxlate.c')
-rw-r--r-- | libshouldbeinlibc/portxlate.c | 10 |
1 files changed, 6 insertions, 4 deletions
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); |