summaryrefslogtreecommitdiffstats
path: root/lib/table.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-01-15 19:34:23 +0100
committerRenato Westphal <renato@opensourcerouting.org>2019-02-11 18:49:49 +0100
commitd01b92fd7507d64bec89350daf725aa6fb9fdcf4 (patch)
treee11fcaa40c9fe08b636f8ca58b786a7766a065ed /lib/table.h
parentMerge pull request #3770 from donaldsharp/detailed_debugs (diff)
downloadfrr-d01b92fd7507d64bec89350daf725aa6fb9fdcf4.tar.xz
frr-d01b92fd7507d64bec89350daf725aa6fb9fdcf4.zip
libs, daemons: changes to permit c++ compilation
Some misc changes to resolve some c++ compilation errors. The goal is only to permit an external module - a plugin, for example - to see frr headers, not to support or encourage contributions in c++. The changes include: avoiding use of keywords like 'new', 'delete'; cleaning up implicit type-casting from 'void *' in several places. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/table.h')
-rw-r--r--lib/table.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/table.h b/lib/table.h
index 541d74d77..a251d2206 100644
--- a/lib/table.h
+++ b/lib/table.h
@@ -275,12 +275,15 @@ static inline struct route_node *route_table_iter_next(route_table_iter_t *iter)
break;
case RT_ITER_STATE_PAUSED:
+ {
+ union prefixconstptr cp = {.p = &iter->pause_prefix};
/*
* Start with the node following pause_prefix.
*/
- node = route_table_get_next(iter->table, &iter->pause_prefix);
- break;
+ node = route_table_get_next(iter->table, cp);
+ }
+ break;
case RT_ITER_STATE_DONE:
return NULL;