summaryrefslogtreecommitdiff
path: root/lib/openbsd-tree.h
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/openbsd-tree.h
parentdc079d4f7a311f5876f84f606cb2cd199783922d (diff)
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/openbsd-tree.h')
-rw-r--r--lib/openbsd-tree.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/openbsd-tree.h b/lib/openbsd-tree.h
index 859f751678..1383ef6de0 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( \