]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ospfd: fix SA warning
authorIgor Ryzhov <iryzhov@nfware.com>
Thu, 25 Mar 2021 12:29:43 +0000 (15:29 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 25 Mar 2021 12:29:43 +0000 (15:29 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
ospfd/ospf_vty.c

index e6835ffc72060bec936a9629847585d1e521251e..cc034671a90ffa646db81990832accf0ed6b87a7 100644 (file)
@@ -7291,7 +7291,7 @@ DEFUN (show_ip_ospf_database_type_adv_router,
        bool all_vrf = false;
        int ret = CMD_SUCCESS;
        int inst = 0;
-       int idx = 0, idx_vrf = 0;
+       int idx_vrf = 0;
        uint8_t use_vrf = 0;
        bool uj = use_json(argc, argv);
        json_object *json = NULL;
@@ -7336,7 +7336,7 @@ DEFUN (show_ip_ospf_database_type_adv_router,
                }
 
                ret = show_ip_ospf_database_type_adv_router_common(
-                       vty, ospf, idx ? 1 : 0, argc, argv, use_vrf, json, uj);
+                       vty, ospf, 0, argc, argv, use_vrf, json, uj);
        }
 
        if (uj) {