about summary refs log tree commit diff
path: root/malloc
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-07 15:01:20 +0530
committerSiddhesh Poyarekar <siddhesh@sourceware.org>2021-07-08 18:47:21 +0530
commit79969f41a7caf9a503a04b78653db971918afa26 (patch)
treef7500128b90be2a3150442efe69cabe6129b943b /malloc
parentb8a19968b0ad928772ab282133a9374d135f7438 (diff)
downloadglibc-79969f41a7caf9a503a04b78653db971918afa26.tar.gz
glibc-79969f41a7caf9a503a04b78653db971918afa26.tar.xz
glibc-79969f41a7caf9a503a04b78653db971918afa26.zip
_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.
Diffstat (limited to 'malloc')
-rw-r--r--malloc/malloc.c4
1 files changed, 2 insertions, 2 deletions
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 */