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/portinfo.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/portinfo.c')
-rw-r--r-- | libshouldbeinlibc/portinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |