summaryrefslogtreecommitdiff
path: root/bgpd/bgp_flowspec_util.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-20 11:57:54 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-21 14:59:18 +0200
commit3dc339cdc2686a1fe6008acd827f9f5ba11a9fed (patch)
treee405af3f4d5ea456eeb19ef6f3dc629060b66a0e /bgpd/bgp_flowspec_util.h
parent09fdbbe98cf143a5cf0418d6f804646ee00a9e4d (diff)
bgpd: Convert lots of int type functions to bool/void
Some were converted to bool, where true/false status is needed. Converted to void only those, where the return status was only false or true. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_flowspec_util.h')
-rw-r--r--bgpd/bgp_flowspec_util.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/bgpd/bgp_flowspec_util.h b/bgpd/bgp_flowspec_util.h
index 2ce911da4e..bd89176bec 100644
--- a/bgpd/bgp_flowspec_util.h
+++ b/bgpd/bgp_flowspec_util.h
@@ -54,8 +54,7 @@ extern bool bgp_flowspec_contains_prefix(struct prefix *pfs,
struct prefix *input,
int prefix_check);
-extern int bgp_flowspec_get_first_nh(struct bgp *bgp,
- struct bgp_path_info *pi,
- struct prefix *nh);
+extern bool bgp_flowspec_get_first_nh(struct bgp *bgp, struct bgp_path_info *pi,
+ struct prefix *nh);
#endif /* _FRR_BGP_FLOWSPEC_UTIL_H */