diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:56:15 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-07-03 23:56:15 +0000 |
commit | 84c05469b0378c17726a054d7486943ef197b423 (patch) | |
tree | 57ac8a2d08bf7510e5468b53c0cc5d8bbc6e9050 /utils/pids.c | |
parent | 5798491126bcb231c4fbd5a9675bae036146ad01 (diff) | |
download | hurd-84c05469b0378c17726a054d7486943ef197b423.tar.gz hurd-84c05469b0378c17726a054d7486943ef197b423.tar.bz2 hurd-84c05469b0378c17726a054d7486943ef197b423.zip |
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* 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.
Diffstat (limited to 'utils/pids.c')
-rw-r--r-- | utils/pids.c | 5 |
1 files changed, 2 insertions, 3 deletions
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 <miles@gnu.ai.mit.edu> @@ -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; |