public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] _int_realloc is static
@ 2021-07-08 13:18 Siddhesh Poyarekar
0 siblings, 0 replies; only message in thread
From: Siddhesh Poyarekar @ 2021-07-08 13:18 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=79969f41a7caf9a503a04b78653db971918afa26
commit 79969f41a7caf9a503a04b78653db971918afa26
Author: Siddhesh Poyarekar <siddhesh@sourceware.org>
Date: Wed Jul 7 15:01:20 2021 +0530
_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.
Diff:
---
malloc/malloc.c | 4 ++--
1 file 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 */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-07-08 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-08 13:18 [glibc] _int_realloc is static Siddhesh Poyarekar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).