OSDN Git Service
(root)
/
uclinux-h8
/
uclibc-ng.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a0af72
)
(malloc): Use MALLOC_SETUP.
author
Miles Bader
<miles@lsi.nec.co.jp>
Mon, 19 Aug 2002 08:44:11 +0000
(08:44 -0000)
committer
Miles Bader
<miles@lsi.nec.co.jp>
Mon, 19 Aug 2002 08:44:11 +0000
(08:44 -0000)
libc/stdlib/malloc/malloc.c
patch
|
blob
|
history
diff --git
a/libc/stdlib/malloc/malloc.c
b/libc/stdlib/malloc/malloc.c
index
b2fb667
..
4a0cf0b
100644
(file)
--- 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 th
is block
. */
+ /* Record the size of th
e 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));