[committed,2/2] _int_realloc is static

Message ID 20210708131624.2005357-3-siddhesh@sourceware.org
State Committed
Headers
Series Trivial malloc cleanups |

Commit Message

Siddhesh Poyarekar July 8, 2021, 1:16 p.m. UTC
  _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 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/malloc/malloc.c b/malloc/malloc.c
index a3525f71da..0253453f27 100644
--- 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 */