From f0ca1e8d92114582ec9142bd15a40f1eb0102793 Mon Sep 17 00:00:00 2001 From: Damjan Marion Date: Sun, 13 Dec 2020 23:26:56 +0100 Subject: misc: refactor clib_bitmap_foreach macro Type: refactor Change-Id: I077110e1a422722e20aa546a6f3224c06ab0cde5 Signed-off-by: Damjan Marion --- src/plugins/map/lpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/map') diff --git a/src/plugins/map/lpm.c b/src/plugins/map/lpm.c index 4abeefca06d..c0e5bad1417 100644 --- a/src/plugins/map/lpm.c +++ b/src/plugins/map/lpm.c @@ -111,12 +111,12 @@ lpm_128_lookup (lpm_t *lpm, void *addr_v, u8 pfxlen) ip6_address_t *addr = addr_v; int i = 0, rv; u32 value; - clib_bitmap_foreach (i, lpm->prefix_lengths_bitmap, - ({ + clib_bitmap_foreach (i, lpm->prefix_lengths_bitmap) + { rv = lpm_128_lookup_core(lpm, addr, i, &value); if (rv == 0) return value; - })); + } return ~0; } -- cgit 1.2.3-korg