summaryrefslogtreecommitdiff
path: root/bgpd/bgp_clist.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-19 21:48:25 +0200
committerDonatas Abraitis <donatas.abraitis@gmail.com>2020-03-19 23:04:21 +0200
commit88f1c9471856f1ced97bbb44bc42a11332d93b9c (patch)
tree744cb5e3082543b7f5effd5a3cbfadf762646e9a /bgpd/bgp_clist.h
parent218326d04a05c6eb7575edc7169782457095d936 (diff)
bgpd: Convert some community related functions to bool type
They return 0/1, hence changing the return type to bool. Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_clist.h')
-rw-r--r--bgpd/bgp_clist.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/bgpd/bgp_clist.h b/bgpd/bgp_clist.h
index c5718aecac..4cb5d7c593 100644
--- a/bgpd/bgp_clist.h
+++ b/bgpd/bgp_clist.h
@@ -165,13 +165,13 @@ extern struct community_list *
community_list_lookup(struct community_list_handler *c, const char *name,
uint32_t name_hash, int master);
-extern int community_list_match(struct community *, struct community_list *);
-extern int ecommunity_list_match(struct ecommunity *, struct community_list *);
-extern int lcommunity_list_match(struct lcommunity *, struct community_list *);
-extern int community_list_exact_match(struct community *,
- struct community_list *);
-extern int lcommunity_list_exact_match(struct lcommunity *lcom,
- struct community_list *list);
+extern bool community_list_match(struct community *, struct community_list *);
+extern bool ecommunity_list_match(struct ecommunity *, struct community_list *);
+extern bool lcommunity_list_match(struct lcommunity *, struct community_list *);
+extern bool community_list_exact_match(struct community *,
+ struct community_list *);
+extern bool lcommunity_list_exact_match(struct lcommunity *lcom,
+ struct community_list *list);
extern struct community *community_list_match_delete(struct community *,
struct community_list *);
extern struct lcommunity *