X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_vl_lookup.c;h=6d922462de881f2f40e5ebcc823e49beb9a0def8;hb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;hp=76c0674b8d596e6f0e28eb97830eef9a5a422465;hpb=c144ae4659e129a929afb67706a54604220fef43;p=collectd.git diff --git a/src/utils_vl_lookup.c b/src/utils_vl_lookup.c index 76c0674b..6d922462 100644 --- a/src/utils_vl_lookup.c +++ b/src/utils_vl_lookup.c @@ -33,6 +33,10 @@ #include "utils_avltree.h" #include "utils_vl_lookup.h" +#if HAVE_KSTAT_H +#include +#endif + #if HAVE_LIBKSTAT kstat_ctl_t *kc; #endif /* HAVE_LIBKSTAT */ @@ -53,7 +57,7 @@ kstat_ctl_t *kc; struct part_match_s { char str[DATA_MAX_NAME_LEN]; regex_t regex; - _Bool is_regex; + bool is_regex; }; typedef struct part_match_s part_match_t; @@ -110,7 +114,7 @@ typedef struct by_type_entry_s by_type_entry_t; /* * Private functions */ -static _Bool lu_part_matches(part_match_t const *match, /* {{{ */ +static bool lu_part_matches(part_match_t const *match, /* {{{ */ char const *str) { if (match->is_regex) { /* Short cut popular catch-all regex. */ @@ -128,7 +132,7 @@ static _Bool lu_part_matches(part_match_t const *match, /* {{{ */ return 1; else return 0; -} /* }}} _Bool lu_part_matches */ +} /* }}} bool lu_part_matches */ static int lu_copy_ident_to_match_part(part_match_t *match_part, /* {{{ */ char const *ident_part) { @@ -331,7 +335,7 @@ static int lu_handle_user_class_list(lookup_t *obj, /* {{{ */ static by_type_entry_t *lu_search_by_type(lookup_t *obj, /* {{{ */ char const *type, - _Bool allocate_if_missing) { + bool allocate_if_missing) { by_type_entry_t *by_type; char *type_copy; int status;