summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2021-04-09 15:59:38 +0000
committerGitHub <noreply@github.com>2021-04-09 15:59:38 +0000
commitf99b9d6eb1c058ba00d33ac7ad032187d5c6efb8 (patch)
tree6c77927b9b40d986a31e76fab1d1d090016056b5
parent3404eb5309a8035dc66f003da90f8b97d7e62cfe (diff)
parente9e1890ba5a4dfd11df158ec5b065cacbbe3d508 (diff)
Merge pull request #8432 from ton31337/fix/use_bool_for_use32bit_asn
bgpd: Use bool type to check if use32bit ASN
-rw-r--r--bgpd/bgp_attr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_attr.c b/bgpd/bgp_attr.c
index f658b0d0f0..71e4b56a00 100644
--- a/bgpd/bgp_attr.c
+++ b/bgpd/bgp_attr.c
@@ -3734,7 +3734,7 @@ bgp_size_t bgp_packet_attribute(struct bgp *bgp, struct peer *peer,
struct aspath *aspath;
int send_as4_path = 0;
int send_as4_aggregator = 0;
- int use32bit = (CHECK_FLAG(peer->cap, PEER_CAP_AS4_RCV)) ? 1 : 0;
+ bool use32bit = CHECK_FLAG(peer->cap, PEER_CAP_AS4_RCV);
if (!bgp)
bgp = peer->bgp;