From 93c4a64035d64efb4bdfbb3df98b234d58154af9 Mon Sep 17 00:00:00 2001 From: Patrick Stephens Date: Wed, 11 Dec 2024 12:38:21 +0000 Subject: [PATCH] calyptia: remove bool usage Signed-off-by: Patrick Stephens --- plugins/custom_calyptia/calyptia.c | 2 +- plugins/custom_calyptia/calyptia.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/custom_calyptia/calyptia.c b/plugins/custom_calyptia/calyptia.c index dba68a25f10..2723c8419da 100644 --- a/plugins/custom_calyptia/calyptia.c +++ b/plugins/custom_calyptia/calyptia.c @@ -617,7 +617,7 @@ static int cb_calyptia_init(struct flb_custom_instance *ins, flb_free(ctx); return -1; } - ctx->machine_id_auto_configured = 1; + ctx->machine_id_auto_configured = FLB_TRUE; } /* input collector */ diff --git a/plugins/custom_calyptia/calyptia.h b/plugins/custom_calyptia/calyptia.h index 5da14d80ace..12e25fdd708 100644 --- a/plugins/custom_calyptia/calyptia.h +++ b/plugins/custom_calyptia/calyptia.h @@ -20,8 +20,6 @@ #ifndef FLB_CALYPTIA_H #define FLB_CALYPTIA_H -#include - struct calyptia { /* config map options */ flb_sds_t api_key; @@ -55,7 +53,7 @@ struct calyptia { flb_sds_t fleet_max_http_buffer_size; flb_sds_t fleet_interval_sec; flb_sds_t fleet_interval_nsec; - bool register_retry_on_flush; /* retry registration on flush if failed */ + int register_retry_on_flush; /* retry registration on flush if failed */ }; int set_fleet_input_properties(struct calyptia *ctx, struct flb_input_instance *fleet);