diff options
author | Tomáš Kopal <Tomas.Kopal@altap.cz> | 2020-11-07 01:10:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 00:10:50 +0000 |
commit | bcb9c868275062212f20127c6b450e2770fe418c (patch) | |
tree | 8fd021439217072da0be22d18be5a931b1a16b25 /collectors | |
parent | b362797e98422b30d9f755888936c96221d2392f (diff) |
Make libnetdata headers compilable by C++. (#10185)
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/apps.plugin/apps_plugin.c | 4 | ||||
-rw-r--r-- | collectors/statsd.plugin/statsd.c | 2 | ||||
-rw-r--r-- | collectors/tc.plugin/plugin_tc.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/collectors/apps.plugin/apps_plugin.c b/collectors/apps.plugin/apps_plugin.c index 4ec8c29ae7..b440bcd5ec 100644 --- a/collectors/apps.plugin/apps_plugin.c +++ b/collectors/apps.plugin/apps_plugin.c @@ -535,7 +535,7 @@ enum user_or_group_id_type { struct user_or_group_ids{ enum user_or_group_id_type type; - avl_tree index; + avl_tree_type index; struct user_or_group_id *root; char filename[FILENAME_MAX + 1]; @@ -1691,7 +1691,7 @@ int file_descriptor_compare(void* a, void* b) { // int file_descriptor_iterator(avl *a) { if(a) {}; return 0; } -avl_tree all_files_index = { +avl_tree_type all_files_index = { NULL, file_descriptor_compare }; diff --git a/collectors/statsd.plugin/statsd.c b/collectors/statsd.plugin/statsd.c index 7fedb4f17e..d9b326f605 100644 --- a/collectors/statsd.plugin/statsd.c +++ b/collectors/statsd.plugin/statsd.c @@ -22,7 +22,7 @@ #define STATSD_FIRST_PTR_MUTEX_UNLOCK(index) netdata_mutex_unlock(&((index)->first_mutex)) #define STATSD_DICTIONARY_OPTIONS DICTIONARY_FLAG_DEFAULT #else -#define STATSD_AVL_TREE avl_tree +#define STATSD_AVL_TREE avl_tree_type #define STATSD_AVL_INSERT avl_insert #define STATSD_AVL_SEARCH avl_search #define STATSD_AVL_INDEX_INIT { .root = NULL, .compar = statsd_metric_compare } diff --git a/collectors/tc.plugin/plugin_tc.c b/collectors/tc.plugin/plugin_tc.c index 9245b0857f..b92450efe7 100644 --- a/collectors/tc.plugin/plugin_tc.c +++ b/collectors/tc.plugin/plugin_tc.c @@ -81,7 +81,7 @@ struct tc_device { RRDSET *st_tokens; RRDSET *st_ctokens; - avl_tree classes_index; + avl_tree_type classes_index; struct tc_class *classes; struct tc_class *last_class; @@ -102,7 +102,7 @@ static int tc_device_compare(void* a, void* b) { else return strcmp(((struct tc_device *)a)->id, ((struct tc_device *)b)->id); } -avl_tree tc_device_root_index = { +avl_tree_type tc_device_root_index = { NULL, tc_device_compare }; |