summaryrefslogtreecommitdiffstats
path: root/ldpd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-18 10:15:33 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-18 17:45:41 +0100
commit4e9a98636fe1624d5e77481701146c4a4f2bd543 (patch)
tree396049fa55b2b9a67198a737444ef7d7994483aa /ldpd
parentzebra: Replace inet_ntop to %pI4/6 for JSON outputs (diff)
downloadfrr-4e9a98636fe1624d5e77481701146c4a4f2bd543.tar.xz
frr-4e9a98636fe1624d5e77481701146c4a4f2bd543.zip
*: Remove unused variables
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ldpd')
-rw-r--r--ldpd/ldp_vty_exec.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ldpd/ldp_vty_exec.c b/ldpd/ldp_vty_exec.c
index 1b7999890..804e3a35e 100644
--- a/ldpd/ldp_vty_exec.c
+++ b/ldpd/ldp_vty_exec.c
@@ -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) {