mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-13 12:40:08 +00:00
malloc: Make tunable callback functions static
Since malloc tunable callback functions are only used within the same file, we should make them static.
This commit is contained in:
parent
05ae46ee7a
commit
310be3cc09
@ -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; \
|
||||
|
Loading…
Reference in New Issue
Block a user