Skip to content

Commit 6bab255

Browse files
committed
sosreport: fix list iterator api
Signed-off-by: Eduardo Silva <[email protected]>
1 parent 995dd12 commit 6bab255

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/flb_sosreport.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ int flb_sosreport(struct flb_config *config)
167167
{
168168
char tmp[32];
169169
struct mk_list *head;
170-
struct mk_list *head_r;
170+
struct cfl_list *head_r;
171171
struct flb_input_plugin *in;
172172
struct flb_filter_plugin *filter;
173173
struct flb_output_plugin *out;
@@ -266,10 +266,10 @@ int flb_sosreport(struct flb_config *config)
266266
print_properties(&ins_in->properties);
267267

268268
/* Fixed Routes */
269-
if (mk_list_is_empty(&ins_in->routes) != 0) {
269+
if (!cfl_list_is_empty(&ins_in->routes)) {
270270
printf(" Routes\t\t");
271-
mk_list_foreach(head_r, &ins_in->routes) {
272-
route = mk_list_entry(head_r, struct flb_router_path, _head);
271+
cfl_list_foreach(head_r, &ins_in->routes) {
272+
route = cfl_list_entry(head_r, struct flb_router_path, _head);
273273
printf("%s ", route->ins->name);
274274
}
275275
printf("\n");

0 commit comments

Comments
 (0)