X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Fteib%2Fteib.c;h=dc0c99b1dbe6e7aa59b71b5d65e05d2971d28f75;hb=b2c31b685fd2cf28436ca32bc93e23eb24c74878;hp=69ed416b41a55b3e36fe8068c11170fa04523949;hpb=62c25abaa3e93be5815172d391295a6ab0390122;p=vpp.git diff --git a/src/vnet/teib/teib.c b/src/vnet/teib/teib.c index 69ed416b41a..dc0c99b1dbe 100644 --- a/src/vnet/teib/teib.c +++ b/src/vnet/teib/teib.c @@ -317,10 +317,10 @@ teib_walk (teib_walk_cb_t fn, void *ctx) index_t tei; /* *INDENT-OFF* */ - pool_foreach_index(tei, teib_pool, - ({ + pool_foreach_index (tei, teib_pool) + { fn(tei, ctx); - })); + } /* *INDENT-ON* */ } @@ -330,11 +330,11 @@ teib_walk_itf (u32 sw_if_index, teib_walk_cb_t fn, void *ctx) index_t tei; /* *INDENT-OFF* */ - pool_foreach_index(tei, teib_pool, - ({ + pool_foreach_index (tei, teib_pool) + { if (sw_if_index == teib_entry_get_sw_if_index(teib_entry_get(tei))) fn(tei, ctx); - })); + } /* *INDENT-ON* */ } @@ -345,12 +345,12 @@ teib_walk_itf_proto (u32 sw_if_index, index_t tei; /* *INDENT-OFF* */ - pool_foreach_index(tei, teib_pool, - ({ + pool_foreach_index (tei, teib_pool) + { if (sw_if_index == teib_entry_get_sw_if_index(teib_entry_get(tei)) && af == teib_entry_get_af(teib_entry_get(tei))) fn(tei, ctx); - })); + } /* *INDENT-ON* */ }