From d8f2d7d71da7a39b7a70866d834658b1a090eb38 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:51:49 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * common.h (VMFREE): Use munmap instead of vm_deallocate. * procstat.c (merge_procinfo): Likewise. --- libps/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libps/common.h') diff --git a/libps/common.h b/libps/common.h index 67d89bfd..abc04682 100644 --- a/libps/common.h +++ b/libps/common.h @@ -1,6 +1,6 @@ /* Handy common functions for things in libps. - Copyright (C) 1995 Free Software Foundation, Inc. + Copyright (C) 1995, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -32,7 +32,7 @@ ((type *)realloc((void *)(old),(unsigned)(sizeof(type)*(len)))) #define FREE(x) (void)free((void *)x) -#define VMFREE(x, len) vm_deallocate(mach_task_self(), (vm_address_t)x, len) +#define VMFREE(x, len) munmap((caddr_t)x, len) #ifndef FALSE #define FALSE 0 -- cgit v1.2.3