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);