From fad8738511040dfb0760006f087247513c13ec6b Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:49:14 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * ccache.c (ccache_read): Use munmap instead of vm_deallocate. (ccache_invalidate): Likewise. (ccache_free): Likewise. * netfs.c (get_dirents): Likewise. --- ftpfs/netfs.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ftpfs/netfs.c') 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; } -- cgit v1.2.3