mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03: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:
@ -207,7 +207,7 @@ __malloc_fork_unlock_child (void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#if HAVE_TUNABLES
|
#if HAVE_TUNABLES
|
||||||
void
|
static void
|
||||||
TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp)
|
TUNABLE_CALLBACK (set_mallopt_check) (tunable_val_t *valp)
|
||||||
{
|
{
|
||||||
int32_t value = (int32_t) valp->numval;
|
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) \
|
# define TUNABLE_CALLBACK_FNDECL(__name, __type) \
|
||||||
static inline int do_ ## __name (__type value); \
|
static inline int do_ ## __name (__type value); \
|
||||||
void \
|
static void \
|
||||||
TUNABLE_CALLBACK (__name) (tunable_val_t *valp) \
|
TUNABLE_CALLBACK (__name) (tunable_val_t *valp) \
|
||||||
{ \
|
{ \
|
||||||
__type value = (__type) (valp)->numval; \
|
__type value = (__type) (valp)->numval; \
|
||||||
|
Reference in New Issue
Block a user