X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fethstat.c;h=f8bc5b540ab29cbebbe269e3e01b819a83952ca9;hp=c5b02d3eb327799af3a6ef45006013e3cce04e2e;hb=48efd3deb4c9139fd060ff3d289896e9031bcc7c;hpb=8e5e2e927f9cf051ef210473b1b48ff62d81f585 diff --git a/src/ethstat.c b/src/ethstat.c index c5b02d3e..f8bc5b54 100644 --- a/src/ethstat.c +++ b/src/ethstat.c @@ -24,9 +24,9 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" -#include "utils_avltree.h" +#include "utils/avltree/avltree.h" +#include "utils/common/common.h" #include "utils_complain.h" #if HAVE_SYS_IOCTL_H @@ -48,12 +48,12 @@ struct value_map_s { }; typedef struct value_map_s value_map_t; -static char **interfaces = NULL; -static size_t interfaces_num = 0; +static char **interfaces; +static size_t interfaces_num; -static c_avl_tree_t *value_map = NULL; +static c_avl_tree_t *value_map; -static _Bool collect_mapped_only = 0; +static bool collect_mapped_only; static int ethstat_add_interface(const oconfig_item_t *ci) /* {{{ */ {