From 925fec2beba08825c5986a5d031f9126d111055a Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 6 Jul 2009 22:47:48 +0200 Subject: [PATCH] http plugin: Remove trailing whitespace. --- src/http.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/http.c b/src/http.c index 09f9cfdd..f4ae0ebf 100644 --- a/src/http.c +++ b/src/http.c @@ -207,7 +207,7 @@ static int http_value_list_to_metric_name (char *buffer, int buffer_len, /* {{{ } /* type (if its the same as plugin, don't bother repeating it */ - if (0 != strcmp (vl->type, vl->plugin)) + if (0 != strcmp (vl->type, vl->plugin)) { status = ssnprintf (buffer + offset, buffer_len - offset, ",%s", vl->type); @@ -347,9 +347,9 @@ static int http_write (const data_set_t *ds, const value_list_t *vl, /* {{{ */ return -1; } - metric_prefix_len = http_value_list_to_metric_name (metric_name, + metric_prefix_len = http_value_list_to_metric_name (metric_name, sizeof (metric_name), ds, vl); - + if (metric_prefix_len == -1) return (-1); @@ -358,14 +358,14 @@ static int http_write (const data_set_t *ds, const value_list_t *vl, /* {{{ */ if (http_value_list_to_timestamp (timestamp, sizeof (timestamp), ds, vl) != 0) return (-1); - for (i = 0; i < ds->ds_num; i++) + for (i = 0; i < ds->ds_num; i++) { if (http_value_list_to_string (value, sizeof (value), ds, vl, i) != 0) return (-1); ssnprintf(metric_name + metric_prefix_len, sizeof (metric_name) - metric_prefix_len, - ",%s", ds->ds[i].name); + ",%s", ds->ds[i].name); escape_string (metric_name, sizeof (metric_name)); -- 2.30.2