From 771a659328bf1929bef5ccb5d443c089a438b3d3 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:55:10 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * clookup.c (file_name_lookup_carefully): Use munmap instead of vm_deallocate. --- sutils/clookup.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sutils/clookup.c') diff --git a/sutils/clookup.c b/sutils/clookup.c index 0942f3e0..620ceae9 100644 --- a/sutils/clookup.c +++ b/sutils/clookup.c @@ -1,6 +1,6 @@ /* Careful filename lookup - Copyright (C) 1996, 1998 Free Software Foundation, Inc. + Copyright (C) 1996, 1998, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -93,8 +93,7 @@ file_name_lookup_carefully (const char *name, int flags, mode_t mode) if (ptrans != _ptrans) /* Deallocate out-of-line memory from file_get_translator. */ - vm_deallocate (mach_task_self (), - (vm_address_t)ptrans, ptrans_len); + munmap (ptrans, ptrans_len); err = file_get_translator_cntl (*node, &fsys); if (! err) -- cgit v1.2.3