summaryrefslogtreecommitdiff
path: root/bgpd/bgp_open.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2020-03-21 12:39:30 -0400
committerGitHub <noreply@github.com>2020-03-21 12:39:30 -0400
commit2ecb6952ef9ab72f5d107140d4d3849a30ecc45f (patch)
tree3040e26567e9fb5e2af76f6f0e0a24b7cf29d3a8 /bgpd/bgp_open.c
parent07ab06a8ce629ff813a29f72a2cad200dab3552d (diff)
parent3dc339cdc2686a1fe6008acd827f9f5ba11a9fed (diff)
Merge pull request #6059 from ton31337/fix/int_to_bool
bgpd: Convert lots of int type functions to bool/void
Diffstat (limited to 'bgpd/bgp_open.c')
-rw-r--r--bgpd/bgp_open.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c
index 81bb45aa76..4a2f7d5882 100644
--- a/bgpd/bgp_open.c
+++ b/bgpd/bgp_open.c
@@ -1013,15 +1013,15 @@ static int bgp_auth_parse(struct peer *peer, size_t length)
return -1;
}
-static int strict_capability_same(struct peer *peer)
+static bool strict_capability_same(struct peer *peer)
{
int i, j;
for (i = AFI_IP; i < AFI_MAX; i++)
for (j = SAFI_UNICAST; j < SAFI_MAX; j++)
if (peer->afc[i][j] != peer->afc_nego[i][j])
- return 0;
- return 1;
+ return false;
+ return true;
}
/* peek into option, stores ASN to *as4 if the AS4 capability was found.