X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Finterface.c;h=86110b0c4bfedcd307d84c26188265124893a745;hp=c45ef6603b79c51e1cbfdc4f7aa04ea9dc7d0e52;hb=d486225f89ea52d8ed2b4242eba2ad94c409f837;hpb=358bf39b09f69220fc8e1b6c2fe98e5e185e3364 diff --git a/src/interface.c b/src/interface.c index c45ef660..86110b0c 100644 --- a/src/interface.c +++ b/src/interface.c @@ -86,9 +86,9 @@ 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 @@ -97,8 +97,8 @@ static _Bool report_inactive = 1; #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 int numif; +static bool unique_name; #endif /* HAVE_LIBKSTAT */ static int interface_config(const char *key, const char *value) { @@ -117,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.");