OSDN Git Service
(root)
/
uclinux-h8
/
uClibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdc62ea
)
(realloc): Follow new arg conventions of MALLOC_SET_SIZE.
author
Miles Bader
<miles@lsi.nec.co.jp>
Mon, 19 Aug 2002 08:45:22 +0000
(08:45 -0000)
committer
Miles Bader
<miles@lsi.nec.co.jp>
Mon, 19 Aug 2002 08:45:22 +0000
(08:45 -0000)
libc/stdlib/malloc/realloc.c
patch
|
blob
|
history
diff --git
a/libc/stdlib/malloc/realloc.c
b/libc/stdlib/malloc/realloc.c
index
31639d7
..
db26866
100644
(file)
--- a/
libc/stdlib/malloc/realloc.c
+++ b/
libc/stdlib/malloc/realloc.c
@@
-57,7
+57,7
@@
realloc (void *mem, size_t new_size)
if (extra)
/* Record the changed size. */
- MALLOC_SET_SIZE (mem, new_size);
+ MALLOC_SET_SIZE (
base_
mem, new_size);
else
/* Our attempts to extend MEM in place failed, just
allocate-and-copy. */
@@
-77,7
+77,7
@@
realloc (void *mem, size_t new_size)
__malloc_lock ();
__heap_free (&__malloc_heap, base_mem + new_size, size - new_size);
__malloc_unlock ();
- MALLOC_SET_SIZE (mem, new_size);
+ MALLOC_SET_SIZE (
base_
mem, new_size);
}
if (mem)