summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/heap_free.c
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-07-19 04:26:41 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-07-19 04:26:41 +0000
commit246192008bf450a7098af436a02dcfdfd88b7ea9 (patch)
tree7c54d2926a118cbfac9aa9d09830733f0eb69e8f /libc/stdlib/malloc/heap_free.c
parent35d29fcb08fadaf006561a058746b0fce76a6a74 (diff)
Rename mutex stuff to use heap-specific names.
Doc fix.
Diffstat (limited to 'libc/stdlib/malloc/heap_free.c')
-rw-r--r--libc/stdlib/malloc/heap_free.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdlib/malloc/heap_free.c b/libc/stdlib/malloc/heap_free.c
index 20ef65572..d8eaf7e66 100644
--- a/libc/stdlib/malloc/heap_free.c
+++ b/libc/stdlib/malloc/heap_free.c
@@ -1,5 +1,5 @@
/*
- * libc/stdlib/malloc-zarg/heap_free.c -- return memory to a heap
+ * libc/stdlib/malloc/heap_free.c -- return memory to a heap
*
* Copyright (C) 2002 NEC Corporation
* Copyright (C) 2002 Miles Bader <miles@gnu.org>
@@ -23,7 +23,7 @@ __heap_free (struct heap *heap, void *mem, size_t size)
struct heap_free_area *prev_fa, *fa, *new_fa;
void *end = (char *)mem + size;
- mutex_lock (heap->lock);
+ __heap_lock (heap);
HEAP_DEBUG (heap, "before __heap_free");
@@ -123,5 +123,5 @@ __heap_free (struct heap *heap, void *mem, size_t size)
done:
HEAP_DEBUG (heap, "after __heap_free");
- mutex_unlock (heap->lock);
+ __heap_unlock (heap);
}