From b2c31b685fd2cf28436ca32bc93e23eb24c74878 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sun, 13 Dec 2020 21:47:40 +0100 Subject: misc: move to new pool_foreach macros Type: refactor Change-Id: Ie67dc579e88132ddb1ee4a34cb69f96920101772 Signed-off-by: Damjan Marion --- src/plugins/abf/abf_itf_attach.c | 6 +++--- src/plugins/abf/abf_policy.c | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) (limited to 'src/plugins/abf') diff --git a/src/plugins/abf/abf_itf_attach.c b/src/plugins/abf/abf_itf_attach.c index 337eed8697d..4f17f720f3b 100644 --- a/src/plugins/abf/abf_itf_attach.c +++ b/src/plugins/abf/abf_itf_attach.c @@ -472,11 +472,11 @@ abf_itf_attach_walk (abf_itf_attach_walk_cb_t cb, void *ctx) u32 aii; /* *INDENT-OFF* */ - pool_foreach_index(aii, abf_itf_attach_pool, - ({ + pool_foreach_index (aii, abf_itf_attach_pool) + { if (!cb(aii, ctx)) break; - })); + } /* *INDENT-ON* */ } diff --git a/src/plugins/abf/abf_policy.c b/src/plugins/abf/abf_policy.c index 8defa752ec8..945434bca27 100644 --- a/src/plugins/abf/abf_policy.c +++ b/src/plugins/abf/abf_policy.c @@ -346,11 +346,11 @@ abf_policy_walk (abf_policy_walk_cb_t cb, void *ctx) u32 api; /* *INDENT-OFF* */ - pool_foreach_index(api, abf_policy_pool, - ({ + pool_foreach_index (api, abf_policy_pool) + { if (!cb(api, ctx)) break; - })); + } /* *INDENT-ON* */ } @@ -375,10 +375,10 @@ abf_show_policy_cmd (vlib_main_t * vm, if (INDEX_INVALID == policy_id) { /* *INDENT-OFF* */ - pool_foreach(ap, abf_policy_pool, - ({ + pool_foreach (ap, abf_policy_pool) + { vlib_cli_output(vm, "%U", format_abf, ap); - })); + } /* *INDENT-ON* */ } else -- cgit 1.2.3-korg