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_advertise.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_advertise.h')
| -rw-r--r-- | bgpd/bgp_advertise.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_advertise.h b/bgpd/bgp_advertise.h index c983598756..6223dc94a3 100644 --- a/bgpd/bgp_advertise.h +++ b/bgpd/bgp_advertise.h @@ -139,10 +139,10 @@ struct bgp_synchronize {  #define BGP_ADJ_IN_DEL(N, A) BGP_PATH_INFO_DEL(N, A, adj_in)  /* Prototypes.  */ -extern int bgp_adj_out_lookup(struct peer *, struct bgp_node *, uint32_t); +extern bool bgp_adj_out_lookup(struct peer *, struct bgp_node *, uint32_t);  extern void bgp_adj_in_set(struct bgp_node *, struct peer *, struct attr *,  			   uint32_t); -extern int bgp_adj_in_unset(struct bgp_node *, struct peer *, uint32_t); +extern bool bgp_adj_in_unset(struct bgp_node *, struct peer *, uint32_t);  extern void bgp_adj_in_remove(struct bgp_node *, struct bgp_adj_in *);  extern void bgp_sync_init(struct peer *);  | 
