diff --git a/tests/runtime/in_podman_metrics.c b/tests/runtime/in_podman_metrics.c index 5ea0f852b7c..6bdb4a33ba9 100644 --- a/tests/runtime/in_podman_metrics.c +++ b/tests/runtime/in_podman_metrics.c @@ -30,11 +30,11 @@ #define DPATH_PODMAN_CGROUP_V2 FLB_TESTS_DATA_PATH "/data/podman/cgroupv2" -int check_metric(flb_ctx_t *ctx, flb_sds_t *name) { +int check_metric(flb_ctx_t *ctx, const char *name) { struct mk_list *tmp; struct mk_list *head; - struct mk_list *inner_tmp; - struct mk_list *inner_head; + struct cfl_list *inner_tmp; + struct cfl_list *inner_head; struct flb_input_instance *i_ins; struct cmt_counter *counter; @@ -43,8 +43,8 @@ int check_metric(flb_ctx_t *ctx, flb_sds_t *name) { mk_list_foreach_safe(head, tmp, &ctx->config->inputs) { i_ins = mk_list_entry(head, struct flb_input_instance, _head); - mk_list_foreach_safe(inner_head, inner_tmp, &i_ins->cmt->counters) { - counter = mk_list_entry(inner_head, struct cmt_counter, _head); + cfl_list_foreach_safe(inner_head, inner_tmp, &i_ins->cmt->counters) { + counter = cfl_list_entry(inner_head, struct cmt_counter, _head); if (strlen(name) != 0 && strcmp(name, counter->opts.name) == 0) {