_int_realloc is static

_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.
This commit is contained in:
Siddhesh Poyarekar 2021-07-07 15:01:20 +05:30
parent b8a19968b0
commit 79969f41a7

View file

@ -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 */