diff options
Diffstat (limited to 'libpipe')
-rw-r--r-- | libpipe/ChangeLog | 4 | ||||
-rw-r--r-- | libpipe/pq.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/libpipe/ChangeLog b/libpipe/ChangeLog index c95d471f..41347672 100644 --- a/libpipe/ChangeLog +++ b/libpipe/ChangeLog @@ -1,3 +1,7 @@ +1999-07-03 Thomas Bushnell, BSG <tb@mit.edu> + + * pq.c (free_packets): Use munmap instead of vm_deallocate. + 1998-10-20 Roland McGrath <roland@baalperazim.frob.com> * pq.c (free_packets): Add braces to silence gcc warning. diff --git a/libpipe/pq.c b/libpipe/pq.c index 9f8ab7ed..d5aaf719 100644 --- a/libpipe/pq.c +++ b/libpipe/pq.c @@ -1,6 +1,6 @@ /* Packet queues - Copyright (C) 1995, 1996, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1998, 1999 Free Software Foundation, Inc. Written by Miles Bader <miles@gnu.ai.mit.edu> @@ -54,8 +54,7 @@ free_packets (struct packet *head) if (head->buf_len > 0) { if (head->buf_vm_alloced) - vm_deallocate (mach_task_self (), - (vm_address_t)head->buf, head->buf_len); + munmap (head->buf, head->buf_len); else free (head->buf); } |