Skip to content

Commit e3eeb0b

Browse files
committed
router: use cfl_list intead of mk_list
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 380c159 commit e3eeb0b

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/flb_router.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ int flb_router_connect(struct flb_input_instance *in,
156156

157157
p->ins = out;
158158
p->route = NULL;
159-
mk_list_add(&p->_head, &in->routes);
159+
cfl_list_add(&p->_head, &in->routes);
160160

161161
return 0;
162162
}
@@ -174,7 +174,7 @@ int flb_router_connect_direct(struct flb_input_instance *in,
174174

175175
p->ins = out;
176176
p->route = NULL;
177-
mk_list_add(&p->_head, &in->routes_direct);
177+
cfl_list_add(&p->_head, &in->routes_direct);
178178

179179
return 0;
180180
}
@@ -273,9 +273,9 @@ int flb_router_io_set(struct flb_config *config)
273273
void flb_router_exit(struct flb_config *config)
274274
{
275275
struct mk_list *tmp;
276-
struct mk_list *r_tmp;
276+
struct cfl_list *r_tmp;
277277
struct mk_list *head;
278-
struct mk_list *r_head;
278+
struct cfl_list *r_head;
279279
struct flb_input_instance *in;
280280
struct flb_router_path *r;
281281

@@ -284,16 +284,16 @@ void flb_router_exit(struct flb_config *config)
284284
in = mk_list_entry(head, struct flb_input_instance, _head);
285285

286286
/* Iterate instance routes */
287-
mk_list_foreach_safe(r_head, r_tmp, &in->routes) {
288-
r = mk_list_entry(r_head, struct flb_router_path, _head);
289-
mk_list_del(&r->_head);
287+
cfl_list_foreach_safe(r_head, r_tmp, &in->routes) {
288+
r = cfl_list_entry(r_head, struct flb_router_path, _head);
289+
cfl_list_del(&r->_head);
290290
flb_free(r);
291291
}
292292

293293
/* Iterate instance routes direct */
294-
mk_list_foreach_safe(r_head, r_tmp, &in->routes_direct) {
295-
r = mk_list_entry(r_head, struct flb_router_path, _head);
296-
mk_list_del(&r->_head);
294+
cfl_list_foreach_safe(r_head, r_tmp, &in->routes_direct) {
295+
r = cfl_list_entry(r_head, struct flb_router_path, _head);
296+
cfl_list_del(&r->_head);
297297
flb_free(r);
298298
}
299299
}

0 commit comments

Comments
 (0)