projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8a1996
)
_int_realloc is static
author
Siddhesh Poyarekar
<siddhesh@sourceware.org>
Wed, 7 Jul 2021 09:31:20 +0000
(15:01 +0530)
committer
Siddhesh Poyarekar
<siddhesh@sourceware.org>
Thu, 8 Jul 2021 13:17:21 +0000
(18:47 +0530)
_int_realloc is correctly declared at the top to be static, but
incorrectly defined without the static keyword. Fix that. The
generated binaries have identical code.
malloc/malloc.c
patch
|
blob
|
history
diff --git
a/malloc/malloc.c
b/malloc/malloc.c
index
a3525f7
..
0253453
100644
(file)
--- a/
malloc/malloc.c
+++ b/
malloc/malloc.c
@@
-4822,8
+4822,8
@@
static void malloc_consolidate(mstate av)
------------------------------ realloc ------------------------------
*/
-
void
*
-_int_realloc(mstate av, mchunkptr oldp, INTERNAL_SIZE_T oldsize,
+
static void
*
+_int_realloc
(mstate av, mchunkptr oldp, INTERNAL_SIZE_T oldsize,
INTERNAL_SIZE_T nb)
{
mchunkptr newp; /* chunk to return */