From 310be3cc09d5b1471174bc12f1860169e686bd65 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 6 May 2021 18:18:48 -0700 Subject: malloc: Make tunable callback functions static Since malloc tunable callback functions are only used within the same file, we should make them static. --- malloc/arena.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'malloc') 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; \ -- cgit v1.1