From 119c804f242e19e2ff7ce516b31cac7b1c3c9039 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 21 Aug 2009 09:21:19 +0200 Subject: [PATCH] =?utf8?q?http=20plugin:=20Rename=20the=20=E2=80=9CLocatio?= =?utf8?q?n=E2=80=9D=20option=20to=20=E2=80=9CURL=E2=80=9D.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit That's more in line with other plugins. --- src/collectd.conf.pod | 2 +- src/http.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/collectd.conf.pod b/src/collectd.conf.pod index 936a6d7b..7115a749 100644 --- a/src/collectd.conf.pod +++ b/src/collectd.conf.pod @@ -1193,7 +1193,7 @@ The following options are accepted by the C-plugin: =over 4 -=item B I +=item B I Set the URL location where values will be sent. diff --git a/src/http.c b/src/http.c index 9dc7f80b..70dc080c 100644 --- a/src/http.c +++ b/src/http.c @@ -38,7 +38,7 @@ */ static const char *config_keys[] = { - "Location", "User", "Password" + "URL", "User", "Password" }; static int config_keys_num = STATIC_ARRAY_SIZE (config_keys); @@ -173,7 +173,7 @@ static int http_value_list_to_string (char *buffer, int buffer_len, /* {{{ */ static int http_config (const char *key, const char *value) /* {{{ */ { - if (strcasecmp ("Location", key) == 0) + if (strcasecmp ("URL", key) == 0) { if (location != NULL) free (location); -- 2.11.0