summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorF. Aragon <paco@voltanet.io>2018-11-20 16:30:20 +0100
committerF. Aragon <paco@voltanet.io>2018-11-20 16:32:25 +0100
commitd90b788e38db54ff6392bb6999f1bc9434bbba61 (patch)
tree2ea3efbf5300742d6ed2b8c0ef793c31ad4269fc /lib
parentMerge pull request #3358 from opensourcerouting/libtool-cfg-warn (diff)
downloadfrr-d90b788e38db54ff6392bb6999f1bc9434bbba61.tar.xz
frr-d90b788e38db54ff6392bb6999f1bc9434bbba61.zip
bgpd isisd lib: fix return on void functions
ISO C forbids ‘return’ with expression, in function returning void. Signed-off-by: F. Aragon <paco@voltanet.io>
Diffstat (limited to 'lib')
-rw-r--r--lib/agg_table.h2
-rw-r--r--lib/openbsd-tree.h8
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/agg_table.h b/lib/agg_table.h
index a703969fd..dc2ff03b6 100644
--- a/lib/agg_table.h
+++ b/lib/agg_table.h
@@ -58,7 +58,7 @@ static inline struct agg_node *agg_lock_node(struct agg_node *node)
static inline void agg_unlock_node(struct agg_node *node)
{
- return route_unlock_node(agg_node_to_rnode(node));
+ route_unlock_node(agg_node_to_rnode(node));
}
static inline void agg_set_table_info(struct agg_table *atable, void *data)
diff --git a/lib/openbsd-tree.h b/lib/openbsd-tree.h
index 859f75167..1383ef6de 100644
--- a/lib/openbsd-tree.h
+++ b/lib/openbsd-tree.h
@@ -475,25 +475,25 @@ int _rb_check(const struct rb_type *, void *, unsigned long);
__attribute__((__unused__)) static inline void _name##_RB_SET_LEFT( \
struct _type *elm, struct _type *left) \
{ \
- return _rb_set_left(_name##_RB_TYPE, elm, left); \
+ _rb_set_left(_name##_RB_TYPE, elm, left); \
} \
\
__attribute__((__unused__)) static inline void _name##_RB_SET_RIGHT( \
struct _type *elm, struct _type *right) \
{ \
- return _rb_set_right(_name##_RB_TYPE, elm, right); \
+ _rb_set_right(_name##_RB_TYPE, elm, right); \
} \
\
__attribute__((__unused__)) static inline void _name##_RB_SET_PARENT( \
struct _type *elm, struct _type *parent) \
{ \
- return _rb_set_parent(_name##_RB_TYPE, elm, parent); \
+ _rb_set_parent(_name##_RB_TYPE, elm, parent); \
} \
\
__attribute__((__unused__)) static inline void _name##_RB_POISON( \
struct _type *elm, unsigned long poison) \
{ \
- return _rb_poison(_name##_RB_TYPE, elm, poison); \
+ _rb_poison(_name##_RB_TYPE, elm, poison); \
} \
\
__attribute__((__unused__)) static inline int _name##_RB_CHECK( \