_int_realloc is static
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Wed, 7 Jul 2021 09:31:20 +0000 (15:01 +0530)
committerSiddhesh 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

index a3525f7..0253453 100644 (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 */