projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
stats plugin: Link with libm (-lm).
[collectd.git]
/
src
/
curl.c
diff --git
a/src/curl.c
b/src/curl.c
index
e35b258
..
ac55953
100644
(file)
--- a/
src/curl.c
+++ b/
src/curl.c
@@
-569,6
+569,7
@@
static int cc_init (void) /* {{{ */
INFO ("curl plugin: No pages have been defined.");
return (-1);
}
INFO ("curl plugin: No pages have been defined.");
return (-1);
}
+ curl_global_init (CURL_GLOBAL_SSL);
return (0);
} /* }}} int cc_init */
return (0);
} /* }}} int cc_init */
@@
-640,7
+641,7
@@
static int cc_read_page (web_page_t *wp) /* {{{ */
status = curl_easy_perform (wp->curl);
if (status != CURLE_OK)
{
status = curl_easy_perform (wp->curl);
if (status != CURLE_OK)
{
- ERROR ("curl plugin: curl_easy_perform failed with staus %i: %s",
+ ERROR ("curl plugin: curl_easy_perform failed with sta
t
us %i: %s",
status, wp->curl_errbuf);
return (-1);
}
status, wp->curl_errbuf);
return (-1);
}
@@
-653,7
+654,7
@@
static int cc_read_page (web_page_t *wp) /* {{{ */
long response_code = 0;
status = curl_easy_getinfo(wp->curl, CURLINFO_RESPONSE_CODE, &response_code);
if(status != CURLE_OK) {
long response_code = 0;
status = curl_easy_getinfo(wp->curl, CURLINFO_RESPONSE_CODE, &response_code);
if(status != CURLE_OK) {
- ERROR ("curl plugin: Fetching response code failed with staus %i: %s",
+ ERROR ("curl plugin: Fetching response code failed with sta
t
us %i: %s",
status, wp->curl_errbuf);
} else {
cc_submit_response_code(wp, response_code);
status, wp->curl_errbuf);
} else {
cc_submit_response_code(wp, response_code);
@@
-679,6
+680,7
@@
static int cc_read_page (web_page_t *wp) /* {{{ */
}
cc_submit (wp, wm, mv);
}
cc_submit (wp, wm, mv);
+ match_value_reset (mv);
} /* for (wm = wp->matches; wm != NULL; wm = wm->next) */
return (0);
} /* for (wm = wp->matches; wm != NULL; wm = wm->next) */
return (0);