]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospf6d: fix compilation of debug code
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Nov 2020 16:06:10 +0000 (19:06 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 18 Nov 2020 16:06:10 +0000 (19:06 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospf6d/ospf6_lsdb.c

index 0892863cf10cae0499b4c5b5966985a60d14781b..c136c558cb7cb72f4be708332b3c1dfcd3f39031 100644 (file)
@@ -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");