]> git.puffer.fish Git - matthieu/frr.git/commitdiff
bgpd: bools use `true/false` not `TRUE/FALSE`
authorDonald Sharp <sharpd@cumulusnetworks.com>
Mon, 13 Apr 2020 12:08:48 +0000 (08:08 -0400)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Mon, 4 May 2020 20:06:19 +0000 (23:06 +0300)
Who knows where these values were coming from.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_route.c

index 494f4923e5ab13ab29591fb9285ba261eb8d30ac..4baaf22440fdb819f662ba0fad98e87fc1d90863 100644 (file)
@@ -9936,7 +9936,7 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp,
                }
        } else if (safi == SAFI_EVPN) {
                struct bgp_node *longest_pfx;
-               bool is_exact_pfxlen_match = FALSE;
+               bool is_exact_pfxlen_match = false;
 
                for (rn = bgp_table_top(rib); rn; rn = bgp_route_next(rn)) {
                        if (prd && memcmp(rn->p.u.val, prd->val, 8) != 0)
@@ -9946,7 +9946,7 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp,
                                continue;
 
                        longest_pfx = NULL;
-                       is_exact_pfxlen_match = FALSE;
+                       is_exact_pfxlen_match = false;
                        /*
                         * Search through all the prefixes for a match.  The
                         * pfx's are enumerated in ascending order of pfxlens.
@@ -9965,7 +9965,7 @@ static int bgp_show_route_in_table(struct vty *vty, struct bgp *bgp,
                                        int type5_pfxlen =
                                           bgp_evpn_get_type5_prefixlen(&rm->p);
                                        if (type5_pfxlen == match.prefixlen) {
-                                               is_exact_pfxlen_match = TRUE;
+                                               is_exact_pfxlen_match = true;
                                                bgp_unlock_node(rm);
                                                break;
                                        }