diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:52:06 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:52:06 +0000 |
commit | 157a9dcf73718cf04690b1646995549a52cee43d (patch) | |
tree | 7f8e23a2bdff30f8d6c9fe79155f6cad48822375 /libshouldbeinlibc/portinfo.c | |
parent | d8f2d7d71da7a39b7a70866d834658b1a090eb38 (diff) | |
download | hurd-157a9dcf73718cf04690b1646995549a52cee43d.tar.gz hurd-157a9dcf73718cf04690b1646995549a52cee43d.tar.bz2 hurd-157a9dcf73718cf04690b1646995549a52cee43d.zip |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* fsysops.c (fsys_get_readonly): Use munmap instead of vm_deallocate.
* idvec-auth.c (idvec_merge_auth): Likewise.
* portinfo.c (print_port_info): Likewise.
(print_task_ports_info): Likewise.
* portxlate.c (port_name_xlator_create): Likewise.
(port_name_xlator_free): Likewise.
* xportinfo.c (print_xlated_task_ports_info): Likewise.
Diffstat (limited to 'libshouldbeinlibc/portinfo.c')
-rw-r--r-- | libshouldbeinlibc/portinfo.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/libshouldbeinlibc/portinfo.c b/libshouldbeinlibc/portinfo.c index 4f3ff40b..19e954c8 100644 --- a/libshouldbeinlibc/portinfo.c +++ b/libshouldbeinlibc/portinfo.c @@ -1,6 +1,6 @@ /* Print information about a task's ports - Copyright (C) 1996, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -121,8 +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, ")"); - vm_deallocate (mach_task_self (), (vm_address_t)members, - members_len * sizeof *members); + munmap (members, members_len * sizeof *members); } } } @@ -149,10 +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); - vm_deallocate (mach_task_self (), - (vm_address_t)names, names_len * sizeof *names); - vm_deallocate (mach_task_self (), - (vm_address_t)types, types_len * sizeof *types); + munmap (names, names_len * sizeof *names); + munmap (types, types_len * sizeof *types); return 0; } |