#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)
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");