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/builtinurl/builtins.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/plugins/builtinurl') diff --git a/src/plugins/builtinurl/builtins.c b/src/plugins/builtinurl/builtins.c index 6b2b57bce7f..04567c0f8c5 100644 --- a/src/plugins/builtinurl/builtins.c +++ b/src/plugins/builtinurl/builtins.c @@ -101,10 +101,10 @@ handle_get_interface_stats (http_builtin_method_type_t reqtype, else /* default, HTTP_BUILTIN_METHOD_GET */ { /* *INDENT-OFF* */ - pool_foreach (hi, im->hw_interfaces, - ({ + pool_foreach (hi, im->hw_interfaces) + { vec_add1 (sw_if_indices, hi->sw_if_index); - })); + } /* *INDENT-ON* */ } @@ -156,12 +156,12 @@ handle_get_interface_list (http_builtin_method_type_t reqtype, /* Construct vector of active hw_if_indexes ... */ /* *INDENT-OFF* */ - pool_foreach (hi, im->hw_interfaces, - ({ + pool_foreach (hi, im->hw_interfaces) + { /* No point in mentioning "local0"... */ if (hi - im->hw_interfaces) vec_add1 (hw_if_indices, hi - im->hw_interfaces); - })); + } /* *INDENT-ON* */ /* Build answer */ -- cgit 1.2.3-korg