diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-20 11:57:54 +0200 | 
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-21 14:59:18 +0200 | 
| commit | 3dc339cdc2686a1fe6008acd827f9f5ba11a9fed (patch) | |
| tree | e405af3f4d5ea456eeb19ef6f3dc629060b66a0e /bgpd/bgp_community.h | |
| parent | 09fdbbe98cf143a5cf0418d6f804646ee00a9e4d (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_community.h')
| -rw-r--r-- | bgpd/bgp_community.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_community.h b/bgpd/bgp_community.h index 74a3a6b507..31a061370d 100644 --- a/bgpd/bgp_community.h +++ b/bgpd/bgp_community.h @@ -77,7 +77,7 @@ extern void community_unintern(struct community **);  extern char *community_str(struct community *, bool make_json);  extern unsigned int community_hash_make(const struct community *);  extern struct community *community_str2com(const char *); -extern int community_match(const struct community *, const struct community *); +extern bool community_match(const struct community *, const struct community *);  extern bool community_cmp(const struct community *c1,  			  const struct community *c2);  extern struct community *community_merge(struct community *, @@ -85,7 +85,7 @@ extern struct community *community_merge(struct community *,  extern struct community *community_delete(struct community *,  					  struct community *);  extern struct community *community_dup(struct community *); -extern int community_include(struct community *, uint32_t); +extern bool community_include(struct community *, uint32_t);  extern void community_del_val(struct community *, uint32_t *);  extern unsigned long community_count(void);  extern struct hash *community_hash(void);  | 
