diff options
author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-20 10:57:54 +0100 |
---|---|---|
committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2020-03-21 13:59:18 +0100 |
commit | 3dc339cdc2686a1fe6008acd827f9f5ba11a9fed (patch) | |
tree | e405af3f4d5ea456eeb19ef6f3dc629060b66a0e /bgpd/bgp_debug.h | |
parent | tools: Convert type int functions to bool where possible (diff) | |
download | frr-3dc339cdc2686a1fe6008acd827f9f5ba11a9fed.tar.xz frr-3dc339cdc2686a1fe6008acd827f9f5ba11a9fed.zip |
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_debug.h')
-rw-r--r-- | bgpd/bgp_debug.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bgpd/bgp_debug.h b/bgpd/bgp_debug.h index 1e6482e96..73007fe81 100644 --- a/bgpd/bgp_debug.h +++ b/bgpd/bgp_debug.h @@ -157,8 +157,8 @@ struct bgp_debug_filter { extern const char *const bgp_type_str[]; -extern int bgp_dump_attr(struct attr *, char *, size_t); -extern int bgp_debug_peer_updout_enabled(char *host); +extern bool bgp_dump_attr(struct attr *, char *, size_t); +extern bool bgp_debug_peer_updout_enabled(char *host); extern const char *bgp_notify_code_str(char); extern const char *bgp_notify_subcode_str(char, char); extern void bgp_notify_print(struct peer *, struct bgp_notify *, const char *); @@ -166,10 +166,10 @@ extern void bgp_notify_print(struct peer *, struct bgp_notify *, const char *); extern const struct message bgp_status_msg[]; extern int bgp_debug_neighbor_events(struct peer *peer); extern int bgp_debug_keepalive(struct peer *peer); -extern int bgp_debug_update(struct peer *peer, struct prefix *p, - struct update_group *updgrp, unsigned int inbound); -extern int bgp_debug_bestpath(struct prefix *p); -extern int bgp_debug_zebra(struct prefix *p); +extern bool bgp_debug_update(struct peer *peer, struct prefix *p, + struct update_group *updgrp, unsigned int inbound); +extern bool bgp_debug_bestpath(struct prefix *p); +extern bool bgp_debug_zebra(struct prefix *p); extern const char *bgp_debug_rdpfxpath2str(afi_t, safi_t, struct prefix_rd *, union prefixconstptr, mpls_label_t *, |