summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Ryzhov <iryzhov@nfware.com>2020-11-18 19:06:10 +0300
committerIgor Ryzhov <iryzhov@nfware.com>2020-11-18 19:06:10 +0300
commit0db96688aaafa83e3eeb257d9607f537115e5dc7 (patch)
treeea24a37533b39e5e653fcb90f49c0e66b41bc01b
parentb0efbc16e40492bb2c80b97031a7991a42af6c24 (diff)
ospf6d: fix compilation of debug code
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
-rw-r--r--ospf6d/ospf6_lsdb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ospf6d/ospf6_lsdb.c b/ospf6d/ospf6_lsdb.c
index 0892863cf1..c136c558cb 100644
--- a/ospf6d/ospf6_lsdb.c
+++ b/ospf6d/ospf6_lsdb.c
@@ -68,9 +68,9 @@ static void ospf6_lsdb_set_key(struct prefix_ipv6 *key, const void *value,
#ifdef DEBUG
static void _lsdb_count_assert(struct ospf6_lsdb *lsdb)
{
- struct ospf6_lsa *debug;
+ struct ospf6_lsa *debug, *debugnext;
unsigned int num = 0;
- for (ALL_LSDB(lsdb, debug))
+ for (ALL_LSDB(lsdb, debug, debugnext))
num++;
if (num == lsdb->count)
@@ -78,7 +78,7 @@ static void _lsdb_count_assert(struct ospf6_lsdb *lsdb)
zlog_debug("PANIC !! lsdb[%p]->count = %d, real = %d", lsdb,
lsdb->count, num);
- for (ALL_LSDB(lsdb, debug))
+ for (ALL_LSDB(lsdb, debug, debugnext))
zlog_debug("%s lsdb[%p]", debug->name, debug->lsdb);
zlog_debug("DUMP END");