diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2018-12-04 02:15:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 02:15:02 +0200 |
commit | c9a8408f55707381282d0f60effbb05e050386df (patch) | |
tree | 742e8f39fafb600e634741e571a32f357e261f86 /web | |
parent | b38ba2d3169e7df7db627c10fd3c2c91ec213f31 (diff) |
fix info api method compilation warnings (#4911)
Diffstat (limited to 'web')
-rw-r--r-- | web/api/web_api_v1.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/web/api/web_api_v1.c b/web/api/web_api_v1.c index e21616462c..338572bf17 100644 --- a/web/api/web_api_v1.c +++ b/web/api/web_api_v1.c @@ -615,7 +615,7 @@ inline int web_client_api_request_v1_registry(RRDHOST *host, struct web_client * } } -inline void web_client_api_request_v1_info_summary_alarm_statuses(const RRDHOST *host, BUFFER *wb) { +static inline void web_client_api_request_v1_info_summary_alarm_statuses(RRDHOST *host, BUFFER *wb) { int alarm_normal = 0, alarm_warn = 0, alarm_crit = 0; RRDCALC *rc; rrdhost_rdlock(host); @@ -640,7 +640,7 @@ inline void web_client_api_request_v1_info_summary_alarm_statuses(const RRDHOST buffer_sprintf(wb, "\t\t\"critical\": %d\n", alarm_crit); } -inline void web_client_api_request_v1_info_mirrored_hosts(BUFFER *wb) { +static inline void web_client_api_request_v1_info_mirrored_hosts(BUFFER *wb) { RRDHOST *rc; int count = 0; rrd_rdlock(); @@ -654,6 +654,8 @@ inline void web_client_api_request_v1_info_mirrored_hosts(BUFFER *wb) { } inline int web_client_api_request_v1_info(RRDHOST *host, struct web_client *w, char *url) { + (void)url; + BUFFER *wb = w->response.data; buffer_flush(wb); wb->contenttype = CT_APPLICATION_JSON; |