summaryrefslogtreecommitdiff
path: root/ftpfs/netfs.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:49:14 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:49:14 +0000
commitfad8738511040dfb0760006f087247513c13ec6b (patch)
treebb0c4d3977bda8ed402c78db665fe408700ba439 /ftpfs/netfs.c
parent701e4350e3096a2a5b4a3a57d5feee9349e9f305 (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* ccache.c (ccache_read): Use munmap instead of vm_deallocate. (ccache_invalidate): Likewise. (ccache_free): Likewise. * netfs.c (get_dirents): Likewise.
Diffstat (limited to 'ftpfs/netfs.c')
-rw-r--r--ftpfs/netfs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ftpfs/netfs.c b/ftpfs/netfs.c
index fb9a2ef6..f1f97bb1 100644
--- a/ftpfs/netfs.c
+++ b/ftpfs/netfs.c
@@ -225,14 +225,13 @@ get_dirents (struct ftpfs_dir *dir,
}
if (err)
- vm_deallocate (mach_task_self (), (vm_address_t)*data, size);
+ munmap (*data, size);
else
{
vm_address_t alloc_end = (vm_address_t)(*data + size);
vm_address_t real_end = round_page (p);
if (alloc_end > real_end)
- vm_deallocate (mach_task_self (),
- real_end, alloc_end - real_end);
+ munmap ((caddr_t) real_end, alloc_end - real_end);
*data_len = p - *data;
*data_entries = count;
}