X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcurl_xml.c;h=4524ac33669a80552d7e91b0191fd3e31be47b07;hb=b5b5d43f302e0b9290d3e247ea29699814d46abb;hp=a8bc3c0bd03ac9dc36aa6ebcb98940629bd8a56e;hpb=102fd13d23aace5ca80cfa0a38184a5c3c392b10;p=collectd.git diff --git a/src/curl_xml.c b/src/curl_xml.c index a8bc3c0b..4524ac33 100644 --- a/src/curl_xml.c +++ b/src/curl_xml.c @@ -21,9 +21,9 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" -#include "utils_curl_stats.h" +#include "utils/common/common.h" +#include "utils/curl_stats/curl_stats.h" #include "utils_llist.h" #include @@ -697,8 +697,8 @@ static int cx_config_add_namespace(cx_t *db, /* {{{ */ return EINVAL; } - cx_namespace_t *ns = realloc( - db->namespaces, sizeof(*db->namespaces) * (db->namespaces_num + 1)); + cx_namespace_t *ns = realloc(db->namespaces, sizeof(*db->namespaces) * + (db->namespaces_num + 1)); if (ns == NULL) { ERROR("curl_xml plugin: realloc failed."); return ENOMEM; @@ -925,7 +925,8 @@ static int cx_config_add_url(oconfig_item_t *ci) /* {{{ */ plugin_register_complex_read(/* group = */ "curl_xml", cb_name, cx_read, /* interval = */ interval, &(user_data_t){ - .data = db, .free_func = cx_free, + .data = db, + .free_func = cx_free, }); sfree(cb_name); return 0;