misc: refactor clib_bitmap_foreach macro
[vpp.git] / src / plugins / lisp / lisp-cp / gid_dictionary.c
index 9b0af3f..a0cc9c0 100644 (file)
@@ -489,11 +489,11 @@ ip4_compute_prefix_lengths_in_search_order (gid_ip4_table_t * db)
   /* Note: bitmap reversed so this is in fact a longest prefix match */
 
   /* *INDENT-OFF* */
-  clib_bitmap_foreach (i, db->ip4_non_empty_dst_address_length_bitmap,
-  ({
+  clib_bitmap_foreach (i, db->ip4_non_empty_dst_address_length_bitmap)
+   {
     int dst_address_length = 32 - i;
     vec_add1 (db->ip4_prefix_lengths_in_search_order, dst_address_length);
-  }));
+  }
   /* *INDENT-ON* */
 
 }
@@ -672,11 +672,11 @@ ip6_compute_prefix_lengths_in_search_order (gid_ip6_table_t * db)
   /* Note: bitmap reversed so this is in fact a longest prefix match */
 
   /* *INDENT-OFF* */
-  clib_bitmap_foreach (i, db->ip6_non_empty_dst_address_length_bitmap,
-  ({
+  clib_bitmap_foreach (i, db->ip6_non_empty_dst_address_length_bitmap)
+   {
     int dst_address_length = 128 - i;
     vec_add1 (db->ip6_prefix_lengths_in_search_order, dst_address_length);
-  }));
+  }
   /* *INDENT-ON* */
 }