summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-07-03 23:47:58 +0000
committerThomas Bushnell <thomas@gnu.org>1999-07-03 23:47:58 +0000
commitc9aaae24d10f2a3972cca7924706b765f772d8a0 (patch)
treee7adfc8f1e81ebc2144fb7e5cf7ae71c348d70ff
parentdad514595f5dd19a9a18512b38f163e5f7cfc0f9 (diff)
1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
* lmail.c (bfree): Use munmap instead of vm_deallocate.
-rw-r--r--daemons/ChangeLog4
-rw-r--r--daemons/lmail.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/daemons/ChangeLog b/daemons/ChangeLog
index ace04649..1bb1793b 100644
--- a/daemons/ChangeLog
+++ b/daemons/ChangeLog
@@ -1,3 +1,7 @@
+1999-07-03 Thomas Bushnell, BSG <tb@mit.edu>
+
+ * lmail.c (bfree): Use munmap instead of vm_deallocate.
+
1999-07-01 Thomas Bushnell, BSG <tb@mit.edu>
* rc.sh: Specify bash instead of sh.
diff --git a/daemons/lmail.c b/daemons/lmail.c
index f30c3b05..3c2d64b3 100644
--- a/daemons/lmail.c
+++ b/daemons/lmail.c
@@ -139,7 +139,7 @@ static void
bfree (char *blk, size_t blk_len)
{
if (blk_len > 0)
- vm_deallocate (mach_task_self (), (vm_address_t)blk, blk_len);
+ munmap (blk, blk_len);
}
/* Read up to MAX chars from IN into BLK & BLK_LEN, which may be reused or