X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fopenvpn.c;h=b0e4bf40bc3a42c4b1e9cc78227e7be833c90b20;hp=193a9b4359f95ed3f6295d805d015143a50dfae4;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=3f4d0cbd79ca46e1b98edb10ddee3a723d69a6bb diff --git a/src/openvpn.c b/src/openvpn.c index 193a9b43..b0e4bf40 100644 --- a/src/openvpn.c +++ b/src/openvpn.c @@ -28,8 +28,8 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" +#include "utils/common/common.h" /** * There is two main kinds of OpenVPN status file: @@ -139,7 +139,8 @@ static void iostats_submit(const char *pinst, const char *tinst, derive_t rx, derive_t tx) { value_list_t vl = VALUE_LIST_INIT; value_t values[] = { - {.derive = rx}, {.derive = tx}, + {.derive = rx}, + {.derive = tx}, }; /* NOTE ON THE NEW NAMING SCHEMA: @@ -165,7 +166,8 @@ static void compression_submit(const char *pinst, const char *tinst, derive_t uncompressed, derive_t compressed) { value_list_t vl = VALUE_LIST_INIT; value_t values[] = { - {.derive = uncompressed}, {.derive = compressed}, + {.derive = uncompressed}, + {.derive = compressed}, }; vl.values = values; @@ -502,14 +504,15 @@ static int openvpn_config(const char *key, const char *value) { /* callback = */ openvpn_read, /* interval = */ 0, &(user_data_t){ - .data = instance, .free_func = openvpn_free, + .data = instance, + .free_func = openvpn_free, }); if (status == EINVAL) { - WARNING("openvpn plugin: status filename \"%s\" " - "already used, please choose a " - "different one.", - status_name); + ERROR("openvpn plugin: status filename \"%s\" " + "already used, please choose a " + "different one.", + status_name); return -1; }