]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: remove unused argument from vrf_cmd_init
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 25 Aug 2021 16:29:42 +0000 (19:29 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Thu, 26 Aug 2021 09:01:22 +0000 (12:01 +0300)
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
15 files changed:
babeld/babeld.c
eigrpd/eigrp_cli.c
isisd/isisd.c
lib/vrf.c
lib/vrf.h
nhrpd/nhrp_vty.c
ospf6d/ospf6_top.c
ospfd/ospf_vty.c
pbrd/pbr_vty.c
pimd/pim_instance.c
ripd/ripd.c
ripngd/ripngd.c
staticd/static_vrf.c
vrrpd/vrrp_vty.c
zebra/zebra_vrf.c

index b9623b64b5fa56dd97f8c21e8028dbc77f70a3af..3fedde354b40f0d27dff8870b4e5b018fb21969b 100644 (file)
@@ -819,7 +819,7 @@ babeld_quagga_init(void)
     install_element(BABEL_NODE, &babel_ipv6_distribute_list_cmd);
     install_element(BABEL_NODE, &babel_no_ipv6_distribute_list_cmd);
 
-    vrf_cmd_init(NULL, &babeld_privs);
+    vrf_cmd_init(NULL);
 
     babel_if_init();
 
index 35536979ea7f014e8d4302aa8b5a5b88ff860c26..c0f6c1129bd1444143dacf48986fcf62929d5cc0 100644 (file)
@@ -909,7 +909,7 @@ eigrp_cli_init(void)
        install_element(EIGRP_NODE, &eigrp_neighbor_cmd);
        install_element(EIGRP_NODE, &eigrp_redistribute_source_metric_cmd);
 
-       vrf_cmd_init(NULL, &eigrpd_privs);
+       vrf_cmd_init(NULL);
 
        if_cmd_init(eigrp_write_interface);
 
index 43efa0164daf5fecb801e90c45e268c0d941773c..a99c19972c6572ef21c5ee3c31a12f5f3ef99fec 100644 (file)
@@ -701,7 +701,7 @@ void isis_vrf_init(void)
        vrf_init(isis_vrf_new, isis_vrf_enable, isis_vrf_disable,
                 isis_vrf_delete, isis_vrf_enable);
 
-       vrf_cmd_init(NULL, &isisd_privs);
+       vrf_cmd_init(NULL);
 }
 
 void isis_terminate()
index 181c29155593746c282a338224b89197875246cb..79313d66d93947c9f8a07ca2d0f3a0926422e0fa 100644 (file)
--- a/lib/vrf.c
+++ b/lib/vrf.c
@@ -907,8 +907,7 @@ void vrf_install_commands(void)
        install_element(ENABLE_NODE, &no_vrf_debug_cmd);
 }
 
-void vrf_cmd_init(int (*writefunc)(struct vty *vty),
-                 struct zebra_privs_t *daemon_privs)
+void vrf_cmd_init(int (*writefunc)(struct vty *vty))
 {
        install_element(CONFIG_NODE, &vrf_cmd);
        install_element(CONFIG_NODE, &no_vrf_cmd);
index 7ce03079dd8f1ca4fbf3db9a54a14aa7ee031c1f..f8b0148eb80ca752951a8daf6e4705f7ca5aee40 100644 (file)
--- a/lib/vrf.h
+++ b/lib/vrf.h
@@ -285,8 +285,7 @@ extern int vrf_switchback_to_initial(void);
 
 /* VRF vty command initialisation
  */
-extern void vrf_cmd_init(int (*writefunc)(struct vty *vty),
-                        struct zebra_privs_t *daemon_priv);
+extern void vrf_cmd_init(int (*writefunc)(struct vty *vty));
 
 /* VRF vty debugging
  */
index 60ce1e652325a7cf5606e5c1dfe8226c147c9808..764ffe084198bfb0c95dc6d87f94838cbb119061 100644 (file)
@@ -1259,7 +1259,7 @@ void nhrp_config_init(void)
        install_element(CONFIG_NODE, &nhrp_multicast_nflog_group_cmd);
        install_element(CONFIG_NODE, &no_nhrp_multicast_nflog_group_cmd);
 
-       vrf_cmd_init(NULL, &nhrpd_privs);
+       vrf_cmd_init(NULL);
 
        /* interface specific commands */
        if_cmd_init(interface_config_write);
index fc181a6d188a3d97014fdecf05546dcccce32354..ad2d503dad243783b3726b226151fa6a4727ea3c 100644 (file)
@@ -238,7 +238,7 @@ void ospf6_vrf_init(void)
        vrf_init(ospf6_vrf_new, ospf6_vrf_enable, ospf6_vrf_disable,
                 ospf6_vrf_delete, ospf6_vrf_enable);
 
-       vrf_cmd_init(NULL, &ospf6d_privs);
+       vrf_cmd_init(NULL);
 }
 
 static void ospf6_top_lsdb_hook_add(struct ospf6_lsa *lsa)
index 4c248c0df31f2c8549d2b2b4aa7ab9c156873fac..b5c16dc657a08aedac14b2fb55d5e72b6ade430f 100644 (file)
@@ -12984,7 +12984,7 @@ void ospf_vty_init(void)
        install_element(OSPF_NODE, &ospf_max_multipath_cmd);
        install_element(OSPF_NODE, &no_ospf_max_multipath_cmd);
 
-       vrf_cmd_init(NULL, &ospfd_privs);
+       vrf_cmd_init(NULL);
 
        /* Init interface related vty commands. */
        ospf_vty_if_init();
index 2936d1e3461719f5ed85b1b4b0d0640de001ec8c..0e6228423942d0cb7fa408dc813b73bcff79624d 100644 (file)
@@ -1229,7 +1229,7 @@ void pbr_vty_init(void)
 {
        cmd_variable_handler_register(pbr_map_name);
 
-       vrf_cmd_init(NULL, &pbr_privs);
+       vrf_cmd_init(NULL);
 
        if_cmd_init(pbr_interface_config_write);
 
index 6dda66b79a689efd3791db3ce1cc6cd1ce71a766..79f01a8da6c30caa13ced6ae91854864a7579ace 100644 (file)
@@ -231,7 +231,7 @@ void pim_vrf_init(void)
        vrf_init(pim_vrf_new, pim_vrf_enable, pim_vrf_disable,
                 pim_vrf_delete, NULL);
 
-       vrf_cmd_init(pim_vrf_config_write, &pimd_privs);
+       vrf_cmd_init(pim_vrf_config_write);
 }
 
 void pim_vrf_terminate(void)
index 3d1427c3b6b327f67e2b45b00246ceb03817d994..9efceb3d575ed0b16c508a4f0dcf8af554da70fb 100644 (file)
@@ -3696,7 +3696,7 @@ void rip_vrf_init(void)
        vrf_init(rip_vrf_new, rip_vrf_enable, rip_vrf_disable, rip_vrf_delete,
                 rip_vrf_enable);
 
-       vrf_cmd_init(NULL, &ripd_privs);
+       vrf_cmd_init(NULL);
 }
 
 void rip_vrf_terminate(void)
index cbd2c22893adc4cbcd40ae04a302c97c83a34c79..1186ffeb941dceff27e066b81a128de35d3096fc 100644 (file)
@@ -2692,7 +2692,7 @@ void ripng_vrf_init(void)
        vrf_init(ripng_vrf_new, ripng_vrf_enable, ripng_vrf_disable,
                 ripng_vrf_delete, ripng_vrf_enable);
 
-       vrf_cmd_init(NULL, &ripngd_privs);
+       vrf_cmd_init(NULL);
 }
 
 void ripng_vrf_terminate(void)
index 96e5d37d68d91221c4e4e904c337fa50b4bb43b3..4b68729f88189061fd42604f181820174e887d8d 100644 (file)
@@ -175,7 +175,7 @@ void static_vrf_init(void)
        vrf_init(static_vrf_new, static_vrf_enable,
                 static_vrf_disable, static_vrf_delete, NULL);
 
-       vrf_cmd_init(static_vrf_config_write, &static_privs);
+       vrf_cmd_init(static_vrf_config_write);
 }
 
 void static_vrf_terminate(void)
index 1904e936cc2cbdca6f9a92a630300920b6d1b562..91ff6fe28ef24b2350526aacebdbf5e50eb0b60d 100644 (file)
@@ -762,7 +762,7 @@ void vrrp_vty_init(void)
 {
        install_node(&debug_node);
        install_node(&vrrp_node);
-       vrf_cmd_init(NULL, &vrrp_privs);
+       vrf_cmd_init(NULL);
        if_cmd_init(vrrp_config_write_interface);
 
        install_element(VIEW_NODE, &vrrp_vrid_show_cmd);
index a2a671e9574685e8cc33cfe4c96e2b092349c419..19ac041dcc7ae2e4287d5a82a9d3867063803c19 100644 (file)
@@ -594,7 +594,7 @@ void zebra_vrf_init(void)
        vrf_init(zebra_vrf_new, zebra_vrf_enable, zebra_vrf_disable,
                 zebra_vrf_delete, zebra_vrf_update);
 
-       vrf_cmd_init(vrf_config_write, &zserv_privs);
+       vrf_cmd_init(vrf_config_write);
 
        if (vrf_is_backend_netns() && ns_have_netns()) {
                /* Install NS commands. */