diff options
author | vkalintiris <vasilis@netdata.cloud> | 2021-01-18 20:00:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-18 20:00:03 +0200 |
commit | 72555a4b3e51603c6dfd15418b1a5e649684e805 (patch) | |
tree | 8aa2be1f2b15ab88d422bc573ddac959fd706811 /health/health.c | |
parent | 5e507fe55203b2c0cfc1610998f6721a4d73805c (diff) |
[health][NFC] Mark internal functions as static. (#10518)
Diffstat (limited to 'health/health.c')
-rw-r--r-- | health/health.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/health/health.c b/health/health.c index 9f96a6a7a5..b81361e8a2 100644 --- a/health/health.c +++ b/health/health.c @@ -79,7 +79,7 @@ inline char *health_stock_config_dir(void) { * * Function used to initialize the silencer structure. */ -void health_silencers_init(void) { +static void health_silencers_init(void) { FILE *fd = fopen(silencers_filename, "r"); if (fd) { fseek(fd, 0 , SEEK_END); @@ -135,7 +135,7 @@ void health_init(void) { * * @param host the structure of the host that the function will reload the configuration. */ -void health_reload_host(RRDHOST *host) { +static void health_reload_host(RRDHOST *host) { if(unlikely(!host->health_enabled)) return; @@ -549,7 +549,7 @@ static void health_main_cleanup(void *ptr) { static_thread->enabled = NETDATA_MAIN_THREAD_EXITED; } -SILENCE_TYPE check_silenced(RRDCALC *rc, char* host, SILENCERS *silencers) { +static SILENCE_TYPE check_silenced(RRDCALC *rc, char* host, SILENCERS *silencers) { SILENCER *s; debug(D_HEALTH, "Checking if alarm was silenced via the command API. Alarm info name:%s context:%s chart:%s host:%s family:%s", rc->name, (rc->rrdset)?rc->rrdset->context:"", rc->chart, host, (rc->rrdset)?rc->rrdset->family:""); @@ -591,7 +591,7 @@ SILENCE_TYPE check_silenced(RRDCALC *rc, char* host, SILENCERS *silencers) { * * @return It returns 1 case rrdcalc_flags is DISABLED or 0 otherwise */ -int update_disabled_silenced(RRDHOST *host, RRDCALC *rc) { +static int update_disabled_silenced(RRDHOST *host, RRDCALC *rc) { uint32_t rrdcalc_flags_old = rc->rrdcalc_flags; // Clear the flags rc->rrdcalc_flags &= ~(RRDCALC_FLAG_DISABLED | RRDCALC_FLAG_SILENCED); |