diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:53:01 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:53:01 +0000 |
commit | 1584a9200a511a6ce330917be8dcaf957bb7c2e2 (patch) | |
tree | 3c1ba5995adf8ab6fd72f7eab6a6df1ba19b99a5 /libstore/enc.c | |
parent | 157a9dcf73718cf04690b1646995549a52cee43d (diff) | |
download | hurd-1584a9200a511a6ce330917be8dcaf957bb7c2e2.tar.gz hurd-1584a9200a511a6ce330917be8dcaf957bb7c2e2.tar.bz2 hurd-1584a9200a511a6ce330917be8dcaf957bb7c2e2.zip |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* bunzip2.c (bunzip2): Use munmap instead of vm_deallocate.
(store_bunzip2_create): Likewise.
* rdwr.c (store_read): Likewise.
* gunzip.c (gunzip): Likewise.
(store_gunzip_create): Likewise.
* enc.c (store_enc_dealloc): Likewise.
* copy.c (copy_cleanup): Likewise.
Diffstat (limited to 'libstore/enc.c')
-rw-r--r-- | libstore/enc.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/libstore/enc.c b/libstore/enc.c index ec5510ab..8ab76f4f 100644 --- a/libstore/enc.c +++ b/libstore/enc.c @@ -1,6 +1,6 @@ /* Store wire encoding/decoding - Copyright (C) 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> This file is part of the GNU Hurd. @@ -60,25 +60,18 @@ store_enc_dealloc (struct store_enc *enc) } if (enc->ports != enc->init_ports) - vm_deallocate (mach_task_self (), - (vm_address_t)enc->ports, - enc->num_ports * sizeof (*enc->ports)); + munmap (enc->ports, enc->num_ports * sizeof (*enc->ports)); } if (enc->ints && enc->num_ints > 0 && enc->ints != enc->init_ints) - vm_deallocate (mach_task_self (), - (vm_address_t)enc->ints, - enc->num_ints * sizeof (*enc->ints)); + munmap (enc->ints, enc->num_ints * sizeof (*enc->ints)); if (enc->offsets && enc->num_offsets > 0 && enc->offsets != enc->init_offsets) - vm_deallocate (mach_task_self (), - (vm_address_t)enc->offsets, - enc->num_offsets * sizeof (*enc->offsets)); + munmap (enc->offsets, enc->num_offsets * sizeof (*enc->offsets)); if (enc->data && enc->data_len > 0 && enc->data != enc->init_data) - vm_deallocate (mach_task_self (), - (vm_address_t)enc->data, enc->data_len); + munmap (enc->data, enc->data_len); /* For good measure... */ bzero (enc, sizeof (*enc)); |