X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Finterface.c;h=40609658ce82541ebeec898d2303b2501aa23e99;hb=a396da422740caf336a6d594515e8d80de6f440a;hp=6c80334e681a63e4d3825df39d05a3a5d8686cec;hpb=22813e1a6a3d059efc67975893df985052661a7a;p=collectd.git diff --git a/src/interface.c b/src/interface.c index 6c80334e..40609658 100644 --- a/src/interface.c +++ b/src/interface.c @@ -86,16 +86,19 @@ static const char *config_keys[] = { }; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static ignorelist_t *ignorelist = NULL; +static ignorelist_t *ignorelist; -static _Bool report_inactive = 1; +static bool report_inactive = true; #ifdef HAVE_LIBKSTAT +#if HAVE_KSTAT_H +#include +#endif #define MAX_NUMIF 256 extern kstat_ctl_t *kc; static kstat_t *ksp[MAX_NUMIF]; static int numif = 0; -static _Bool unique_name = 0; +static bool unique_name; #endif /* HAVE_LIBKSTAT */ static int interface_config(const char *key, const char *value) { @@ -114,7 +117,7 @@ static int interface_config(const char *key, const char *value) { else if (strcasecmp(key, "UniqueName") == 0) { #ifdef HAVE_LIBKSTAT if (IS_TRUE(value)) - unique_name = 1; + unique_name = true; #else WARNING("interface plugin: the \"UniqueName\" option is only valid on " "Solaris.");