projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.8' into master
[collectd.git]
/
src
/
write_http.c
diff --git
a/src/write_http.c
b/src/write_http.c
index
024dccc
..
ad0cb5e
100644
(file)
--- a/
src/write_http.c
+++ b/
src/write_http.c
@@
-50,16
+50,16
@@
struct wh_callback_s {
char *user;
char *pass;
char *credentials;
char *user;
char *pass;
char *credentials;
-
_B
ool verify_peer;
-
_B
ool verify_host;
+
b
ool verify_peer;
+
b
ool verify_host;
char *cacert;
char *capath;
char *clientkey;
char *clientcert;
char *clientkeypass;
long sslversion;
char *cacert;
char *capath;
char *clientkey;
char *clientcert;
char *clientkeypass;
long sslversion;
-
_B
ool store_rates;
-
_B
ool log_http_error;
+
b
ool store_rates;
+
b
ool log_http_error;
int low_speed_limit;
time_t low_speed_time;
int timeout;
int low_speed_limit;
time_t low_speed_time;
int timeout;
@@
-68,8
+68,8
@@
struct wh_callback_s {
#define WH_FORMAT_JSON 1
#define WH_FORMAT_KAIROSDB 2
int format;
#define WH_FORMAT_JSON 1
#define WH_FORMAT_KAIROSDB 2
int format;
-
_B
ool send_metrics;
-
_B
ool send_notifications;
+
b
ool send_metrics;
+
b
ool send_notifications;
CURL *curl;
struct curl_slist *headers;
CURL *curl;
struct curl_slist *headers;
@@
-624,16
+624,16
@@
static int wh_config_node(oconfig_item_t *ci) /* {{{ */
ERROR("write_http plugin: calloc failed.");
return -1;
}
ERROR("write_http plugin: calloc failed.");
return -1;
}
- cb->verify_peer =
1
;
- cb->verify_host =
1
;
+ cb->verify_peer =
true
;
+ cb->verify_host =
true
;
cb->format = WH_FORMAT_COMMAND;
cb->sslversion = CURL_SSLVERSION_DEFAULT;
cb->low_speed_limit = 0;
cb->timeout = 0;
cb->format = WH_FORMAT_COMMAND;
cb->sslversion = CURL_SSLVERSION_DEFAULT;
cb->low_speed_limit = 0;
cb->timeout = 0;
- cb->log_http_error =
0
;
+ cb->log_http_error =
false
;
cb->headers = NULL;
cb->headers = NULL;
- cb->send_metrics =
1
;
- cb->send_notifications =
0
;
+ cb->send_metrics =
true
;
+ cb->send_notifications =
false
;
cb->data_ttl = 0;
cb->metrics_prefix = strdup(WRITE_HTTP_DEFAULT_PREFIX);
cb->data_ttl = 0;
cb->metrics_prefix = strdup(WRITE_HTTP_DEFAULT_PREFIX);