From: Florian Forster Date: Fri, 21 Aug 2009 07:21:19 +0000 (+0200) Subject: http plugin: Rename the “Location” option to “URL”. X-Git-Tag: collectd-4.8.0~26^2~13 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=119c804f242e19e2ff7ce516b31cac7b1c3c9039;p=collectd.git http plugin: Rename the “Location” option to “URL”. That's more in line with other plugins. --- 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);