]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
_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 a3525f71daac8e3cfd5474006b6f10e4ec9fb70f..0253453f276901f4d951c47bfe14f779d979306c 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 */