summaryrefslogtreecommitdiff
path: root/lib/srcdest_table.h
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-01-15 13:34:23 -0500
committerRenato Westphal <renato@opensourcerouting.org>2019-02-11 15:49:49 -0200
commitd01b92fd7507d64bec89350daf725aa6fb9fdcf4 (patch)
treee11fcaa40c9fe08b636f8ca58b786a7766a065ed /lib/srcdest_table.h
parentfb85ce1b812d892a07a4f942b4cfade9442b9a2b (diff)
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/srcdest_table.h')
-rw-r--r--lib/srcdest_table.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/srcdest_table.h b/lib/srcdest_table.h
index 54acb51b03..6f9457826c 100644
--- a/lib/srcdest_table.h
+++ b/lib/srcdest_table.h
@@ -84,7 +84,8 @@ static inline int rnode_is_srcnode(struct route_node *rn)
static inline struct route_table *srcdest_rnode_table(struct route_node *rn)
{
if (rnode_is_srcnode(rn)) {
- struct route_node *dst_rn = route_table_get_info(rn->table);
+ struct route_node *dst_rn =
+ (struct route_node *)route_table_get_info(rn->table);
return dst_rn->table;
} else {
return rn->table;