summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@users.noreply.github.com>2021-04-09 17:59:38 +0200
committerGitHub <noreply@github.com>2021-04-09 17:59:38 +0200
commitf99b9d6eb1c058ba00d33ac7ad032187d5c6efb8 (patch)
tree6c77927b9b40d986a31e76fab1d1d090016056b5
parentMerge pull request #8428 from idryzhov/show-memory-daemon (diff)
parentbgpd: Use bool type to check if use32bit ASN (diff)
downloadfrr-f99b9d6eb1c058ba00d33ac7ad032187d5c6efb8.tar.xz
frr-f99b9d6eb1c058ba00d33ac7ad032187d5c6efb8.zip
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 f658b0d0f..71e4b56a0 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;