aboutsummaryrefslogtreecommitdiff
path: root/malloc/arena.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2021-05-06 18:18:48 -0700
committerH.J. Lu <hjl.tools@gmail.com>2021-05-07 11:11:46 -0700
commit310be3cc09d5b1471174bc12f1860169e686bd65 (patch)
tree08e52828aa823562f0860468de843ccda45a12e7 /malloc/arena.c
parent05ae46ee7a70b158d58b2c8581451fed9c18da2a (diff)
downloadglibc-310be3cc09d5b1471174bc12f1860169e686bd65.zip
glibc-310be3cc09d5b1471174bc12f1860169e686bd65.tar.gz
glibc-310be3cc09d5b1471174bc12f1860169e686bd65.tar.bz2
malloc: Make tunable callback functions static
Since malloc tunable callback functions are only used within the same file, we should make them static.
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index 9fbbb38..7eb1104 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -207,7 +207,7 @@ __malloc_fork_unlock_child (void)
}
#if HAVE_TUNABLES
-void
+static void
TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp)
{
int32_t value = (int32_t) valp->numval;
@@ -217,7 +217,7 @@ TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp)
# define TUNABLE_CALLBACK_FNDECL(__name, __type) \
static inline int do_ ## __name (__type value); \
-void \
+static void \
TUNABLE_CALLBACK (__name) (tunable_val_t *valp) \
{ \
__type value = (__type) (valp)->numval; \