]> git.puffer.fish Git - matthieu/frr.git/commitdiff
*: Remove unused variables
authorDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 18 Nov 2021 09:15:33 +0000 (11:15 +0200)
committerDonatas Abraitis <donatas.abraitis@gmail.com>
Thu, 18 Nov 2021 16:45:41 +0000 (18:45 +0200)
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
14 files changed:
bgpd/bgp_evpn_mh.c
bgpd/bgp_evpn_vty.c
bgpd/bgp_route.c
bgpd/bgp_vpn.c
bgpd/bgp_vty.c
ldpd/ldp_vty_exec.c
lib/nexthop_group.c
ospfd/ospf_sr.c
ospfd/ospf_vty.c
pimd/pim_cmd.c
zebra/zebra_evpn_mac.c
zebra/zebra_evpn_mh.c
zebra/zebra_evpn_neigh.c
zebra/zebra_mpls.c

index 8bfddf2bb9eea16d1cf0aa1e1c35999c1f7a59da..d35f86caf5db66e54f5e59276c652b67dacb4077 100644 (file)
@@ -2191,7 +2191,6 @@ static void bgp_evpn_es_json_vtep_fill(json_object *json_vteps,
 {
        json_object *json_vtep_entry;
        json_object *json_flags;
-       char ip_buf[INET6_ADDRSTRLEN];
 
        json_vtep_entry = json_object_new_object();
 
@@ -2313,8 +2312,6 @@ static void bgp_evpn_es_show_entry(struct vty *vty,
 static void bgp_evpn_es_show_entry_detail(struct vty *vty,
                struct bgp_evpn_es *es, json_object *json)
 {
-       char ip_buf[INET6_ADDRSTRLEN];
-
        if (json) {
                json_object *json_flags;
                json_object *json_incons;
@@ -3712,7 +3709,6 @@ static void bgp_evpn_es_evi_json_vtep_fill(json_object *json_vteps,
 {
        json_object *json_vtep_entry;
        json_object *json_flags;
-       char ip_buf[INET6_ADDRSTRLEN];
 
        json_vtep_entry = json_object_new_object();
 
index e3dccf86fcdd8cd51a09cb03f3b52099d44076e3..89ed9551ce9ecca57a8f363b373cd8a04665440f 100644 (file)
@@ -377,7 +377,6 @@ static void display_l3vni(struct vty *vty, struct bgp *bgp_vrf,
        json_object *json_import_rtl = NULL;
        json_object *json_export_rtl = NULL;
        char buf2[ETHER_ADDR_STRLEN];
-       char originator_ip[BUFSIZ] = {0};
 
        json_import_rtl = json_export_rtl = 0;
 
@@ -479,7 +478,6 @@ static void display_vni(struct vty *vty, struct bgpevpn *vpn, json_object *json)
        json_object *json_import_rtl = NULL;
        json_object *json_export_rtl = NULL;
        struct bgp *bgp_evpn;
-       char buf[BUFSIZ] = {0};
 
        bgp_evpn = bgp_get_evpn();
 
@@ -927,7 +925,6 @@ static void show_l3vni_entry(struct vty *vty, struct bgp *bgp,
        json_object *json_export_rtl = NULL;
        char buf1[10];
        char buf2[INET6_ADDRSTRLEN];
-       char buf3[BUFSIZ] = {0};
        char rt_buf[25];
        char *ecom_str;
        struct listnode *node, *nnode;
@@ -1051,7 +1048,6 @@ static void show_vni_entry(struct hash_bucket *bucket, void *args[])
        struct bgpevpn *vpn = (struct bgpevpn *)bucket->data;
        char buf1[10];
        char buf2[RD_ADDRSTRLEN];
-       char buf3[BUFSIZ] = {0};
        char rt_buf[25];
        char *ecom_str;
        struct listnode *node, *nnode;
@@ -1196,7 +1192,6 @@ static int bgp_show_ethernet_vpn(struct vty *vty, struct prefix_rd *prd,
        char rd_str[RD_ADDRSTRLEN];
        char buf[BUFSIZ];
        int no_display;
-       char router_id[BUFSIZ] = {0};
 
        unsigned long output_count = 0;
        unsigned long total_count = 0;
@@ -5767,7 +5762,6 @@ DEFUN (show_bgp_vrf_l3vni_info,
 {
        char buf[ETHER_ADDR_STRLEN];
        char buf1[INET6_ADDRSTRLEN];
-       char originator_ip[BUFSIZ] = {0};
        int idx_vrf = 3;
        const char *name = NULL;
        struct bgp *bgp = NULL;
index 3bc267e3ae56f8c2a61fcf4ca836712889210a03..4838e6c7ddc1811a224414c64c92498cba246fd7 100644 (file)
@@ -8733,8 +8733,6 @@ void route_vty_out(struct vty *vty, const struct prefix *p,
                }
        } else if (safi == SAFI_EVPN) {
                if (json_paths) {
-                       char buf[BUFSIZ] = {0};
-
                        json_nexthop_global = json_object_new_object();
 
                        json_object_string_addf(json_nexthop_global, "ip",
@@ -8766,8 +8764,6 @@ void route_vty_out(struct vty *vty, const struct prefix *p,
        } else if (safi == SAFI_FLOWSPEC) {
                if (attr->nexthop.s_addr != INADDR_ANY) {
                        if (json_paths) {
-                               char buf[BUFSIZ] = {0};
-
                                json_nexthop_global = json_object_new_object();
 
                                json_object_string_add(json_nexthop_global,
@@ -8804,8 +8800,6 @@ void route_vty_out(struct vty *vty, const struct prefix *p,
                }
        } else if (p->family == AF_INET && !BGP_ATTR_NEXTHOP_AFI_IP6(attr)) {
                if (json_paths) {
-                       char buf[BUFSIZ] = {0};
-
                        json_nexthop_global = json_object_new_object();
 
                        json_object_string_addf(json_nexthop_global, "ip",
@@ -8838,8 +8832,6 @@ void route_vty_out(struct vty *vty, const struct prefix *p,
 
        /* IPv6 Next Hop */
        else if (p->family == AF_INET6 || BGP_ATTR_NEXTHOP_AFI_IP6(attr)) {
-               char buf[BUFSIZ];
-
                if (json_paths) {
                        json_nexthop_global = json_object_new_object();
                        json_object_string_addf(json_nexthop_global, "ip",
@@ -9117,8 +9109,6 @@ void route_vty_out_tmp(struct vty *vty, struct bgp_dest *dest,
        /* Print attribute */
        if (attr) {
                if (use_json) {
-                       char buf[BUFSIZ] = {0};
-
                        if (p->family == AF_INET
                            && (safi == SAFI_MPLS_VPN || safi == SAFI_ENCAP
                                || !BGP_ATTR_NEXTHOP_AFI_IP6(attr))) {
@@ -9132,15 +9122,11 @@ void route_vty_out_tmp(struct vty *vty, struct bgp_dest *dest,
                                                &attr->nexthop);
                        } else if (p->family == AF_INET6
                                   || BGP_ATTR_NEXTHOP_AFI_IP6(attr)) {
-                               char buf[BUFSIZ];
-
                                json_object_string_addf(
                                        json_net, "nextHopGlobal", "%pI6",
                                        &attr->mp_nexthop_global);
                        } else if (p->family == AF_EVPN
                                   && !BGP_ATTR_NEXTHOP_AFI_IP6(attr)) {
-                               char buf[BUFSIZ] = {0};
-
                                json_object_string_addf(
                                        json_net, "nextHop", "%pI4",
                                        &attr->mp_nexthop_global_in);
@@ -9262,8 +9248,6 @@ void route_vty_out_tag(struct vty *vty, const struct prefix *p,
             && ((safi == SAFI_MPLS_VPN || safi == SAFI_ENCAP)))
            || (safi == SAFI_EVPN && !BGP_ATTR_NEXTHOP_AFI_IP6(attr))
            || (!BGP_ATTR_NEXTHOP_AFI_IP6(attr))) {
-               char buf[BUFSIZ] = {0};
-
                if (safi == SAFI_MPLS_VPN || safi == SAFI_ENCAP
                    || safi == SAFI_EVPN) {
                        if (json)
@@ -9864,8 +9848,6 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn,
 
        if (CHECK_FLAG(attr->flag, ATTR_FLAG_BIT(BGP_ATTR_AGGREGATOR))) {
                if (json_paths) {
-                       char buf[BUFSIZ] = {0};
-
                        json_object_int_add(json_path, "aggregatorAs",
                                            attr->aggregator_as);
                        json_object_string_addf(json_path, "aggregatorId",
@@ -9919,8 +9901,6 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn,
             || bn_p->family == AF_EVPN)
            && (safi == SAFI_MPLS_VPN || safi == SAFI_ENCAP || safi == SAFI_EVPN
                || !BGP_ATTR_NEXTHOP_AFI_IP6(attr))) {
-               char buf[BUFSIZ] = {0};
-
                if (safi == SAFI_MPLS_VPN || safi == SAFI_ENCAP
                    || safi == SAFI_EVPN) {
                        if (json_paths) {
@@ -10041,14 +10021,11 @@ void route_vty_out_detail(struct vty *vty, struct bgp *bgp, struct bgp_dest *bn,
                                vty_out(vty, " from :: ");
                }
 
-               if (json_paths) {
-                       char buf[BUFSIZ] = {0};
-
+               if (json_paths)
                        json_object_string_addf(json_peer, "routerId", "%pI4",
                                                &bgp->router_id);
-               } else {
+               else
                        vty_out(vty, "(%pI4)", &bgp->router_id);
-               }
        }
 
        /* We RXed this path from one of our peers */
@@ -13399,7 +13376,6 @@ static void show_adj_route_header(struct vty *vty, struct bgp *bgp,
                                  json_object *json_ocode, bool wide)
 {
        uint64_t version = table ? table->version : 0;
-       char buf[BUFSIZ] = {0};
 
        if (*header1) {
                if (json) {
@@ -13471,8 +13447,6 @@ show_adj_route(struct vty *vty, struct peer *peer, struct bgp_table *table,
 
        if (type == bgp_show_adj_route_advertised && subgrp
            && CHECK_FLAG(subgrp->sflags, SUBGRP_STATUS_DEFAULT_ORIGINATE)) {
-               char buf[BUFSIZ] = {0};
-
                if (use_json) {
                        json_object_int_add(json, "bgpTableVersion",
                                            table->version);
index 0225cf90ed8bc8cd0bf66c810fd859fd4d5c6adb..bf630c1d8949aea14a53b6b628d5f8d668e4968f 100644 (file)
@@ -118,8 +118,6 @@ int show_adj_route_vpn(struct vty *vty, struct peer *peer,
 
                        if (header) {
                                if (use_json) {
-                                       char buf[BUFSIZ] = {0};
-
                                        json_object_int_add(
                                                json, "bgpTableVersion", 0);
                                        json_object_string_addf(
index 97b54c64c56cf7015a036a83711ea0497d50d654..9782e131b1f6032e80c5672bd399bd15860645ae 100644 (file)
@@ -10288,8 +10288,6 @@ static int bgp_show_summary(struct vty *vty, struct bgp *bgp, int afi, int safi,
 
                        /* Usage summary and header */
                        if (use_json) {
-                               char buf[BUFSIZ] = {0};
-
                                json_object_string_addf(json, "routerId",
                                                        "%pI4",
                                                        &bgp->router_id);
index 1b7999890a53b1005422ad388e5f7651c0e80632..804e3a35ecdd8a41d1c0fe64f9ff8e44e2fb4df5 100644 (file)
@@ -447,7 +447,6 @@ show_discovery_msg_json(struct imsg *imsg, struct show_params *params,
     json_object *json)
 {
        struct ctl_adj          *adj;
-       char                    buf[PREFIX_STRLEN];
        json_object             *json_array;
        json_object             *json_adj;
 
@@ -497,7 +496,6 @@ show_discovery_msg_json(struct imsg *imsg, struct show_params *params,
 static void
 show_discovery_detail_adj_json(json_object *json, struct ctl_adj *adj)
 {
-       char buf[PREFIX_STRLEN];
        json_object *json_adj;
        json_object *json_array;
 
@@ -530,7 +528,6 @@ show_discovery_detail_msg_json(struct imsg *imsg, struct show_params *params,
        struct ctl_disc_tnbr    *tnbr;
        struct in_addr           rtr_id;
        union ldpd_addr         *trans_addr;
-       char buf[PREFIX_STRLEN];
        json_object             *json_interface;
        json_object             *json_target;
        static json_object      *json_interfaces;
@@ -745,7 +742,6 @@ show_nbr_msg_json(struct imsg *imsg, struct show_params *params,
     json_object *json)
 {
        struct ctl_nbr          *nbr;
-       char buf[PREFIX_STRLEN];
        json_object             *json_array;
        json_object             *json_nbr;
 
@@ -1228,7 +1224,6 @@ show_lib_msg_json(struct imsg *imsg, struct show_params *params,
        json_object     *json_array;
        json_object     *json_lib_entry;
        char             dstnet[BUFSIZ];
-       char buf[PREFIX_STRLEN];
 
        switch (imsg->hdr.type) {
        case IMSG_CTL_SHOW_LIB_BEGIN:
@@ -1276,7 +1271,6 @@ show_lib_detail_msg_json(struct imsg *imsg, struct show_params *params,
 {
        struct ctl_rt           *rt = NULL;
        char                     dstnet[BUFSIZ];
-       char buf[PREFIX_STRLEN];
        static json_object      *json_lib_entry;
        static json_object      *json_adv_labels;
        json_object             *json_adv_label;
@@ -1384,7 +1378,6 @@ show_l2vpn_binding_msg_json(struct imsg *imsg, struct show_params *params,
        struct ctl_pw   *pw;
        json_object     *json_pw;
        char             key_name[64];
-       char buf[PREFIX_STRLEN];
 
        switch (imsg->hdr.type) {
        case IMSG_CTL_SHOW_L2VPN_BINDING:
@@ -1470,7 +1463,6 @@ show_l2vpn_pw_msg_json(struct imsg *imsg, struct show_params *params,
     json_object *json)
 {
        struct ctl_pw   *pw;
-       char buf[PREFIX_STRLEN];
        json_object     *json_pw;
 
        switch (imsg->hdr.type) {
index 774d03079a8a2c660adafa55e9aff3890c6d1b47..e8c678ad71a416c5a8f0b8cf65d4ed900fc23db5 100644 (file)
@@ -1035,7 +1035,6 @@ void nexthop_group_write_nexthop(struct vty *vty, const struct nexthop *nh)
 
 void nexthop_group_json_nexthop(json_object *j, const struct nexthop *nh)
 {
-       char buf[100];
        struct vrf *vrf;
        json_object *json_backups = NULL;
        int i;
index 4328efa28c9185cd7706d583b92569beab21f894..48a72ee64905fe36559c3eb20a736a3756797c2a 100644 (file)
@@ -2916,7 +2916,6 @@ DEFUN (show_ip_opsf_srdb,
        int idx = 0;
        struct in_addr rid;
        struct sr_node *srn;
-       char buf[PREFIX_STRLEN];
        bool uj = use_json(argc, argv);
        json_object *json = NULL, *json_node_array = NULL;
 
index 3d3cd683054c2f35aba3b8a00358132df8641f77..5899872e439b41e46d5b4bce22a4ec34b1360204 100644 (file)
@@ -3043,7 +3043,6 @@ static int show_ip_ospf_common(struct vty *vty, struct ospf *ospf,
        struct ospf_area *area;
        struct timeval result;
        char timebuf[OSPF_TIME_DUMP_SIZE];
-       char buf[PREFIX_STRLEN];
        json_object *json_vrf = NULL;
        json_object *json_areas = NULL;
 
@@ -3532,7 +3531,6 @@ static void show_ip_ospf_interface_sub(struct vty *vty, struct ospf *ospf,
        int is_up;
        struct ospf_neighbor *nbr;
        struct route_node *rn;
-       char buf[PREFIX_STRLEN];
        uint32_t bandwidth = ifp->bandwidth ? ifp->bandwidth : ifp->speed;
 
        /* Is interface up? */
@@ -4329,7 +4327,6 @@ static void show_ip_ospf_neighbor_sub(struct vty *vty,
        struct route_node *rn;
        struct ospf_neighbor *nbr, *prev_nbr = NULL;
        char msgbuf[16];
-       char buf[PREFIX_STRLEN];
        char timebuf[OSPF_TIME_DUMP_SIZE];
        json_object *json_neighbor = NULL, *json_neigh_array = NULL;
        struct timeval res = {.tv_sec = 0, .tv_usec = 0};
@@ -5009,7 +5006,6 @@ static void show_ip_ospf_nbr_nbma_detail_sub(struct vty *vty,
                                             bool use_json, json_object *json)
 {
        char timebuf[OSPF_TIME_DUMP_SIZE];
-       char buf[PREFIX_STRLEN];
        json_object *json_sub = NULL;
 
        if (use_json)
@@ -5093,7 +5089,6 @@ static void show_ip_ospf_neighbor_detail_sub(struct vty *vty,
        char timebuf[OSPF_TIME_DUMP_SIZE];
        json_object *json_neigh = NULL, *json_neigh_array = NULL;
        char neigh_str[INET_ADDRSTRLEN] = {0};
-       char buf[PREFIX_STRLEN];
 
        if (use_json) {
                if (prev_nbr &&
@@ -6134,7 +6129,6 @@ static const char *const show_database_header[] = {
 static void show_ip_ospf_database_header(struct vty *vty, struct ospf_lsa *lsa,
                                         json_object *json)
 {
-       char buf[PREFIX_STRLEN];
        struct router_lsa *rlsa = (struct router_lsa *)lsa->data;
 
        if (!json) {
@@ -6447,7 +6441,6 @@ static int show_summary_asbr_lsa_detail(struct vty *vty, struct ospf_lsa *lsa,
 static int show_as_external_lsa_detail(struct vty *vty, struct ospf_lsa *lsa,
                                       json_object *json)
 {
-       char buf[PREFIX_STRLEN];
        int tos = 0;
 
        if (lsa != NULL) {
@@ -6497,7 +6490,6 @@ static int show_as_external_lsa_detail(struct vty *vty, struct ospf_lsa *lsa,
 static int show_as_nssa_lsa_detail(struct vty *vty, struct ospf_lsa *lsa,
                                   json_object *json)
 {
-       char buf[PREFIX_STRLEN];
        int tos = 0;
 
        if (lsa != NULL) {
@@ -6972,7 +6964,6 @@ static int show_ip_ospf_database_common(struct vty *vty, struct ospf *ospf,
        int idx_type = 4;
        int type, ret;
        struct in_addr id, adv_router;
-       char buf[PREFIX_STRLEN];
        json_object *json_vrf = NULL;
 
        if (uj) {
@@ -7245,7 +7236,6 @@ static int show_ip_ospf_database_type_adv_router_common(struct vty *vty,
        int idx_type = 4;
        int type, ret;
        struct in_addr adv_router;
-       char buf[PREFIX_STRLEN];
        json_object *json_vrf = NULL;
 
        if (uj) {
@@ -10041,7 +10031,6 @@ static void show_ip_ospf_route_network(struct vty *vty, struct ospf *ospf,
        struct ospf_route * or ;
        struct listnode *pnode, *pnnode;
        struct ospf_path *path;
-       char buf[PREFIX_STRLEN];
        json_object *json_route = NULL, *json_nexthop_array = NULL,
                    *json_nexthop = NULL;
 
@@ -10326,7 +10315,6 @@ static void show_ip_ospf_route_external(struct vty *vty, struct ospf *ospf,
        struct ospf_route *er;
        struct listnode *pnode, *pnnode;
        struct ospf_path *path;
-       char buf[PREFIX_STRLEN];
        json_object *json_route = NULL, *json_nexthop_array = NULL,
                    *json_nexthop = NULL;
 
@@ -10741,7 +10729,6 @@ DEFUN (show_ip_ospf_vrfs,
        struct ospf *ospf = NULL;
        struct listnode *node = NULL;
        int count = 0;
-       char buf[PREFIX_STRLEN];
        static const char header[] = "Name                       Id     RouterId  ";
 
        if (uj) {
index 0372985ea2ba25282ae3c41e8f5b568acc355f6c..501d69dbf5826eaf5e0486ce32aca72655c61bc9 100644 (file)
@@ -308,7 +308,6 @@ static void json_object_pim_ifp_add(struct json_object *json,
                                    struct interface *ifp)
 {
        struct pim_interface *pim_ifp;
-       char buf[PREFIX_STRLEN];
 
        pim_ifp = ifp->info;
        json_object_string_add(json, "name", ifp->name);
@@ -488,7 +487,6 @@ static void igmp_show_interfaces(struct pim_instance *pim, struct vty *vty,
        struct interface *ifp;
        time_t now;
        char buf[PREFIX_STRLEN];
-       char quer_buf[PREFIX_STRLEN];
        json_object *json = NULL;
        json_object *json_row = NULL;
 
@@ -582,7 +580,6 @@ static void igmp_show_interfaces_single(struct pim_instance *pim,
        struct listnode *sock_node;
        struct pim_interface *pim_ifp;
        char uptime[10];
-       char quer_buf[PREFIX_STRLEN];
        char query_hhmmss[10];
        char other_hhmmss[10];
        int found_ifname = 0;
@@ -925,7 +922,6 @@ static void pim_show_interfaces_single(struct pim_instance *pim,
        int mloop = 0;
        int found_ifname = 0;
        int print_header;
-       char buf[PREFIX_STRLEN];
        json_object *json = NULL;
        json_object *json_row = NULL;
        json_object *json_pim_neighbor = NULL;
@@ -1402,7 +1398,6 @@ static void pim_show_interfaces(struct pim_instance *pim, struct vty *vty,
        int fhr = 0;
        int pim_nbrs = 0;
        int pim_ifchannels = 0;
-       char buf[PREFIX_STRLEN];
        json_object *json = NULL;
        json_object *json_row = NULL;
        json_object *json_tmp;
index 5a7ec320430fd3545d0e1de58b55eb401b5875be..cdaa5ce5ae22d5d16e2efebd08de1e2972bf81ba 100644 (file)
@@ -619,7 +619,6 @@ void zebra_evpn_print_mac(struct zebra_mac *mac, void *ctxt, json_object *json)
        struct listnode *node = NULL;
        char buf1[ETHER_ADDR_STRLEN];
        char buf2[INET6_ADDRSTRLEN];
-       char addr_buf[PREFIX_STRLEN];
        struct zebra_vrf *zvrf;
        struct timeval detect_start_time = {0, 0};
        char timebuf[MONOTIME_STRLEN];
@@ -2237,7 +2236,7 @@ int zebra_evpn_add_update_local_mac(struct zebra_vrf *zvrf,
                                        zlog_debug(
                                                "        Add/Update %sMAC %pEA intf %s(%u) VID %u -> VNI %u%s, "
                                                "entry exists and has not changed ",
-                                               sticky ? "sticky " : "", 
+                                               sticky ? "sticky " : "",
                                                macaddr, ifp->name,
                                                ifp->ifindex, vid, zevpn->vni,
                                                local_inactive
index df4d48964a95627f2c26608634ca43f6209e2c7d..9b3ea220f764147e567dddacfa92bb1bb8a6b6fa 100644 (file)
@@ -1325,7 +1325,6 @@ static void zebra_evpn_es_l2_nh_show_entry(struct zebra_evpn_l2_nh *nh,
 {
        if (json_array) {
                json_object *json = NULL;
-               char ip_buf[INET6_ADDRSTRLEN];
 
                json = json_object_new_object();
                json_object_string_addf(json, "vtep", "%pI4", &nh->vtep_ip);
@@ -3006,7 +3005,6 @@ static void zebra_evpn_es_json_vtep_fill(struct zebra_evpn_es *es,
        struct listnode *node;
        json_object *json_vtep_entry;
        char alg_buf[EVPN_DF_ALG_STR_LEN];
-       char ip_buf[INET6_ADDRSTRLEN];
 
        for (ALL_LIST_ELEMENTS_RO(es->es_vtep_list, node, es_vtep)) {
                json_vtep_entry = json_object_new_object();
index 55212f06b37d3c13ab919d946dbdf3066adab631..e585f5282a07053c9d53c7285fe7777819adfc47 100644 (file)
@@ -1725,7 +1725,6 @@ void zebra_evpn_print_neigh(struct zebra_neigh *n, void *ctxt,
        struct vty *vty;
        char buf1[ETHER_ADDR_STRLEN];
        char buf2[INET6_ADDRSTRLEN];
-       char addr_buf[PREFIX_STRLEN];
        const char *type_str;
        const char *state_str;
        bool flags_present = false;
index e32905f58678a2a94be87b50da8d46d3da4dc876..cd7af05d704c5a9d6c11bc123cd1510e14c5edf9 100644 (file)
@@ -1504,7 +1504,6 @@ static int mpls_static_lsp_uninstall_all(struct zebra_vrf *zvrf,
 
 static json_object *nhlfe_json(struct zebra_nhlfe *nhlfe)
 {
-       char buf[BUFSIZ];
        json_object *json_nhlfe = NULL;
        json_object *json_backups = NULL;
        json_object *json_label_stack;