X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fnetlink.c;h=e99e38bc64e190f99f83ff127fbe3cc2ef608c17;hb=a396da422740caf336a6d594515e8d80de6f440a;hp=051458f69aceebb9a07d00e7e07f19c239715df4;hpb=cc1e32e35aa90b91f4b9900e82389c94c3ffc9ce;p=collectd.git diff --git a/src/netlink.c b/src/netlink.c index 051458f6..e99e38bc 100644 --- a/src/netlink.c +++ b/src/netlink.c @@ -92,11 +92,11 @@ struct qos_stats { }; static int ir_ignorelist_invert = 1; -static ir_ignorelist_t *ir_ignorelist_head = NULL; +static ir_ignorelist_t *ir_ignorelist_head; static struct mnl_socket *nl; -static char **iflist = NULL; +static char **iflist; static size_t iflist_len = 0; static const char *config_keys[] = {"Interface", "VerboseInterface", @@ -449,7 +449,7 @@ static int qos_filter_cb(const struct nlmsghdr *nlh, void *args) { const char *tc_type; char tc_inst[DATA_MAX_NAME_LEN]; - _Bool stats_submitted = 0; + bool stats_submitted = false; if (nlh->nlmsg_type == RTM_NEWQDISC) tc_type = "qdisc"; @@ -539,7 +539,7 @@ static int qos_filter_cb(const struct nlmsghdr *nlh, void *args) { if (q_stats.bs != NULL || q_stats.qs != NULL) { char type_instance[DATA_MAX_NAME_LEN]; - stats_submitted = 1; + stats_submitted = true; snprintf(type_instance, sizeof(type_instance), "%s-%s", tc_type, tc_inst);