From 84c05469b0378c17726a054d7486943ef197b423 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Sat, 3 Jul 1999 23:56:15 +0000 Subject: 1999-07-03 Thomas Bushnell, BSG * login.c (cat): Use munmap instead of vm_deallocate. (check_owned): Likewise. (kill_login): Likewise. * storeread.c (main): Likewise. * showtrans.c (main): Likewise. * pids.c (add_fn_pids): Likewise. * msgport.c (cmd_getenv): Likewise. --- utils/pids.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'utils/pids.c') diff --git a/utils/pids.c b/utils/pids.c index ea759247..5e80a767 100644 --- a/utils/pids.c +++ b/utils/pids.c @@ -1,6 +1,6 @@ /* Pid parsing/frobbing - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1999 Free Software Foundation, Inc. Written by Miles Bader @@ -65,8 +65,7 @@ add_fn_pids (pid_t **pids, size_t *num_pids, unsigned id, else err = ENOMEM; if (new_pids != _new_pids) - vm_deallocate (mach_task_self (), (vm_address_t)new_pids, - num_new_pids * sizeof (pid_t)); + munmap (new_pids, num_new_pids * sizeof (pid_t)); } return err; -- cgit v1.2.3