]> git.proxmox.com Git - mirror_frr.git/commitdiff
bgpd: Fix some build issues from removing HAVE_CUMULUS
authorDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Jun 2018 00:57:36 +0000 (20:57 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Fri, 29 Jun 2018 00:57:36 +0000 (20:57 -0400)
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
bgpd/bgp_evpn_vty.c
bgpd/bgp_route.c

index b3edfed5a492f204c056552547bb1b2a088624ac..729bd87adadb1feead6f965f243941f2c5eb5859 100644 (file)
@@ -3256,10 +3256,11 @@ DEFUN(show_bgp_l2vpn_evpn_es,
 {
        int idx = 0;
        uint8_t uj = 0;
-       esi_t esi = {0};
+       esi_t esi;
        json_object *json = NULL;
        struct bgp *bgp = NULL;
 
+       memset(&esi, 0, sizeof(esi));
        uj = use_json(argc, argv);
 
        bgp = bgp_get_default();
@@ -3541,10 +3542,11 @@ DEFUN(show_bgp_l2vpn_evpn_route_esi,
       JSON_STR)
 {
        int uj = 0;
-       esi_t esi = {0};
+       esi_t esi;
        struct bgp *bgp = NULL;
        json_object *json = NULL;
 
+       memset(&esi, 0, sizeof(esi));
        bgp = bgp_get_default();
        if (!bgp)
                return CMD_WARNING;
index fcf983e31a639a65f8d4051d77a54a5ae6ab1b5a..7057b62f2b00a47271b8eaa19d28602ae7599392 100644 (file)
@@ -8010,10 +8010,9 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct prefix *p,
                if (binfo->extra && binfo->extra->damp_info)
                        bgp_damp_info_vty(vty, binfo, json_path);
 
-/* Remote Label */
+               /* Remote Label */
                if (binfo->extra && bgp_is_valid_label(&binfo->extra->label[0])
-                   && safi != SAFI_EVPN)
-               {
+                   && safi != SAFI_EVPN) {
                        mpls_label_t label =
                                label_pton(&binfo->extra->label[0]);
                        if (json_paths)