From: Ruben Kerkhof Date: Mon, 14 May 2018 13:18:33 +0000 (+0200) Subject: write_sensu plugin: remove unused parameter X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=8a43178ffd78060ec2353b22675666c66caf9e4f;p=collectd.git write_sensu plugin: remove unused parameter CC src/write_sensu.lo src/write_sensu.c:341:38: warning: unused parameter 'status' [-Wunused-parameter] int status) { ^ 1 warning generated. --- diff --git a/src/write_sensu.c b/src/write_sensu.c index 3b4a574d..cf6a6bda 100644 --- a/src/write_sensu.c +++ b/src/write_sensu.c @@ -337,8 +337,7 @@ static void in_place_replace_sensu_name_reserved(char *orig_name) /* {{{ */ static char *sensu_value_to_json(struct sensu_host const *host, /* {{{ */ data_set_t const *ds, value_list_t const *vl, - size_t index, gauge_t const *rates, - int status) { + size_t index, gauge_t const *rates) { char name_buffer[5 * DATA_MAX_NAME_LEN]; char service_buffer[6 * DATA_MAX_NAME_LEN]; char *ret_str; @@ -926,7 +925,7 @@ static int sensu_write(const data_set_t *ds, /* {{{ */ } } for (size_t i = 0; i < vl->values_len; i++) { - msg = sensu_value_to_json(host, ds, vl, (int)i, rates, statuses[i]); + msg = sensu_value_to_json(host, ds, vl, (int)i, rates); if (msg == NULL) { sfree(rates); pthread_mutex_unlock(&host->lock);