Skip to content

Commit 9aa07ac

Browse files
committed
task: fix data type for linked list
Signed-off-by: Eduardo Silva <[email protected]>
1 parent fa8e8b3 commit 9aa07ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/flb_task.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ struct flb_task *flb_task_create(uint64_t ref_id,
367367
struct flb_router_path *route_path;
368368
struct flb_output_instance *o_ins;
369369
struct flb_input_chunk *task_ic;
370-
struct mk_list *i_head;
370+
struct cfl_list *i_head;
371371
struct mk_list *o_head;
372372
struct flb_router_chunk_context router_context;
373373
int router_context_initialized = FLB_FALSE;
@@ -426,11 +426,11 @@ struct flb_task *flb_task_create(uint64_t ref_id,
426426
#endif
427427

428428
/* Direct connects betweek input <> outputs (API based) */
429-
if (mk_list_size(&i_ins->routes_direct) > 0) {
429+
if (cfl_list_size(&i_ins->routes_direct) > 0) {
430430
direct_count = 0;
431431

432-
mk_list_foreach(i_head, &i_ins->routes_direct) {
433-
route_path = mk_list_entry(i_head, struct flb_router_path, _head);
432+
cfl_list_foreach(i_head, &i_ins->routes_direct) {
433+
route_path = cfl_list_entry(i_head, struct flb_router_path, _head);
434434

435435
if (flb_router_path_should_route(task->event_chunk,
436436
&router_context,

0 commit comments

Comments
 (0)