aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/ct6
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2020-12-13 21:47:40 +0100
committerDave Barach <openvpp@barachs.net>2020-12-14 12:14:21 +0000
commitb2c31b685fd2cf28436ca32bc93e23eb24c74878 (patch)
treedc0a1b1ff784445b2cbb0f9b2c07b5bcb4f5a5d0 /src/plugins/ct6
parent62c25abaa3e93be5815172d391295a6ab0390122 (diff)
misc: move to new pool_foreach macros
Type: refactor Change-Id: Ie67dc579e88132ddb1ee4a34cb69f96920101772 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/plugins/ct6')
-rw-r--r--src/plugins/ct6/ct6.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/plugins/ct6/ct6.c b/src/plugins/ct6/ct6.c
index 15fa44a5d45..d569a7c3f5b 100644
--- a/src/plugins/ct6/ct6.c
+++ b/src/plugins/ct6/ct6.c
@@ -322,10 +322,10 @@ show_ct6_command_fn_command_fn (vlib_main_t * vm,
0 /* pool */ , 0 /* header */ , verbose);
/* *INDENT-OFF* */
- pool_foreach (s0, cmp->sessions[i],
- ({
+ pool_foreach (s0, cmp->sessions[i])
+ {
s = format (s, "%U", format_ct6_session, cmp, i, s0, verbose);
- }));
+ }
/* *INDENT-ON* */
}
vlib_cli_output (cmp->vlib_main, "%v", s);
@@ -431,10 +431,10 @@ test_ct6_command_fn_command_fn (vlib_main_t * vm,
}
/* *INDENT-OFF* */
- pool_foreach (s0, cmp->sessions[0],
- ({
+ pool_foreach (s0, cmp->sessions[0])
+ {
s = format (s, "%U", format_ct6_session, cmp, 0, s0, 1 /* verbose */);
- }));
+ }
/* *INDENT-ON* */
vlib_cli_output (vm, "\nEnd state: first index %d last index %d\n%v",
@@ -451,10 +451,10 @@ test_ct6_command_fn_command_fn (vlib_main_t * vm,
ct6_update_session_hit (cmp, s0, 234.0);
/* *INDENT-OFF* */
- pool_foreach (s0, cmp->sessions[0],
- ({
+ pool_foreach (s0, cmp->sessions[0])
+ {
s = format (s, "%U", format_ct6_session, cmp, 0, s0, 1 /* verbose */);
- }));
+ }
/* *INDENT-ON* */
vlib_cli_output (vm, "\nEnd state: first index %d last index %d\n%v",