summaryrefslogtreecommitdiff
path: root/isisd/isis_flex_algo.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-09-07 12:05:29 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2023-09-07 12:08:50 +0200
commit36bd815ba77564398e1398ad7f071bafa34e93be (patch)
treee0f1c97604166a12f9480d7ae63999aece00c49d /isisd/isis_flex_algo.c
parentf3434880b6768b1d1059a578d2c404490a56004f (diff)
Revert "lib: add a frr_each_const macro"
This reverts commit 72eae2c3cb771b7010f3f07b6c638e9ae078bbdf. `frr_each_const(X, ...)` is not needed since it is the same as `frr_each(X_const, ...)`. The fact that it wasn't properly set up for clang-format, and that then work-arounded with "clang-format off" is all the more reason to not do this. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_flex_algo.c')
-rw-r--r--isisd/isis_flex_algo.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/isisd/isis_flex_algo.c b/isisd/isis_flex_algo.c
index ef30987b8e..fbe249ab5a 100644
--- a/isisd/isis_flex_algo.c
+++ b/isisd/isis_flex_algo.c
@@ -127,10 +127,7 @@ _isis_flex_algo_elected(int algorithm, const struct isis_area *area,
* Perform FAD comparison. First, compare the priority, and if they are
* the same, compare the sys-id.
*/
- /* clang-format off */
- frr_each_const(lspdb, &area->lspdb[ISIS_LEVEL1 - 1], lsp) {
- /* clang-format on */
-
+ frr_each (lspdb_const, &area->lspdb[ISIS_LEVEL1 - 1], lsp) {
if (!lsp->tlvs || !lsp->tlvs->router_cap)
continue;