summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/malloc.c
diff options
context:
space:
mode:
authorMiles Bader <miles@lsi.nec.co.jp>2002-08-19 08:44:11 +0000
committerMiles Bader <miles@lsi.nec.co.jp>2002-08-19 08:44:11 +0000
commitbdc62ea2b81f490d7ae398129085ccd088cef0d6 (patch)
treeaa968d7b508c63f2803bcd1ba2c51bda2f8ec085 /libc/stdlib/malloc/malloc.c
parent5a0af72d6d41ad1c8e858b3920a97f070c2a5d8d (diff)
(malloc): Use MALLOC_SETUP.
Diffstat (limited to 'libc/stdlib/malloc/malloc.c')
-rw-r--r--libc/stdlib/malloc/malloc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/stdlib/malloc/malloc.c b/libc/stdlib/malloc/malloc.c
index b2fb6677b..4a0cf0ba5 100644
--- a/libc/stdlib/malloc/malloc.c
+++ b/libc/stdlib/malloc/malloc.c
@@ -121,10 +121,9 @@ malloc (size_t size)
__malloc_unlock ();
if (__malloc_likely (mem))
- /* Record the size of this block. */
+ /* Record the size of the block and get the user address. */
{
- mem = MALLOC_ADDR (mem);
- MALLOC_SET_SIZE (mem, size);
+ mem = MALLOC_SETUP (mem, size);
MALLOC_DEBUG (" malloc: returning 0x%lx (base:0x%lx, total_size:%d)\n",
(long)mem, (long)MALLOC_BASE(mem), (long)MALLOC_SIZE(mem));