From: Ruben Kerkhof Date: Mon, 14 May 2018 13:22:17 +0000 (+0200) Subject: write_riemann plugin: fix warning X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=9f1354b34feaf1e30284e14895a4b71adbcc7980 write_riemann plugin: fix warning src/write_riemann.c:185:50: warning: unused parameter 'host' [-Wunused-parameter] wrr_notification_to_message(struct riemann_host *host, /* {{{ */ ^ 1 warning generated. --- diff --git a/src/write_riemann.c b/src/write_riemann.c index 45f92193..1578e1c1 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -181,9 +181,7 @@ static int wrr_send(struct riemann_host *host, riemann_message_t *msg) { return status; } -static riemann_message_t * -wrr_notification_to_message(struct riemann_host *host, /* {{{ */ - notification_t const *n) { +static riemann_message_t *wrr_notification_to_message(notification_t const *n) { riemann_message_t *msg; riemann_event_t *event; char service_buffer[6 * DATA_MAX_NAME_LEN]; @@ -271,7 +269,7 @@ wrr_notification_to_message(struct riemann_host *host, /* {{{ */ "host = \"%s\", service = \"%s\", state = \"%s\"", event->host, event->service, event->state); return msg; -} /* }}} riemann_message_t *wrr_notification_to_message */ +} static riemann_event_t * wrr_value_to_event(struct riemann_host const *host, /* {{{ */ @@ -546,7 +544,7 @@ static int wrr_notification(const notification_t *n, user_data_t *ud) /* {{{ */ /* * Never batch for notifications, send them ASAP */ - msg = wrr_notification_to_message(host, n); + msg = wrr_notification_to_message(n); if (msg == NULL) return -1;