X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_kafka.c;h=c120d15d9598bfdbabaa94701f696fbe07c45d0f;hb=6e41c3b1f024d7944e5e8010a87933555c662474;hp=2baaf0e5f1b371dddea530e0acf7073211dad665;hpb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;p=collectd.git diff --git a/src/write_kafka.c b/src/write_kafka.c index 2baaf0e5..c120d15d 100644 --- a/src/write_kafka.c +++ b/src/write_kafka.c @@ -43,7 +43,7 @@ struct kafka_topic_context { #define KAFKA_FORMAT_GRAPHITE 2 uint8_t format; unsigned int graphite_flags; - _Bool store_rates; + bool store_rates; rd_kafka_topic_conf_t *conf; rd_kafka_topic_t *topic; rd_kafka_conf_t *kafka_conf; @@ -273,7 +273,7 @@ static void kafka_config_topic(rd_kafka_conf_t *conf, } tctx->escape_char = '.'; - tctx->store_rates = 1; + tctx->store_rates = true; tctx->format = KAFKA_FORMAT_JSON; tctx->key = NULL;