mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-14 06:50:17 +00:00
*: make frr_yang_module_info const
Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
364deb0487
commit
0d8c7a26a1
@ -136,7 +136,7 @@ struct option longopts[] =
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *babeld_yang_modules[] =
|
||||
static const struct frr_yang_module_info *const babeld_yang_modules[] =
|
||||
{
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
@ -109,7 +109,7 @@ static struct quagga_signal_t bfd_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *bfdd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const bfdd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
&frr_bfdd_info,
|
||||
};
|
||||
|
@ -360,7 +360,7 @@ static void bgp_vrf_terminate(void)
|
||||
vrf_terminate();
|
||||
}
|
||||
|
||||
static const struct frr_yang_module_info *bgpd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const bgpd_yang_modules[] = {
|
||||
};
|
||||
|
||||
FRR_DAEMON_INFO(bgpd, BGP, .vty_port = BGP_VTY_PORT,
|
||||
|
@ -137,7 +137,7 @@ struct quagga_signal_t eigrp_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *eigrpd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const eigrpd_yang_modules[] = {
|
||||
&frr_eigrpd_info,
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
@ -162,7 +162,7 @@ struct quagga_signal_t isisd_signals[] = {
|
||||
};
|
||||
|
||||
|
||||
static const struct frr_yang_module_info *isisd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const isisd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
#ifndef FABRICD
|
||||
&frr_isisd_info,
|
||||
|
@ -177,7 +177,7 @@ static struct quagga_signal_t ldp_signals[] =
|
||||
}
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *ldpd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const ldpd_yang_modules[] = {
|
||||
};
|
||||
|
||||
FRR_DAEMON_INFO(ldpd, LDP,
|
||||
|
@ -98,7 +98,7 @@ struct frr_daemon_info {
|
||||
|
||||
struct zebra_privs_t *privs;
|
||||
|
||||
const struct frr_yang_module_info **yang_modules;
|
||||
const struct frr_yang_module_info *const *yang_modules;
|
||||
size_t n_yang_modules;
|
||||
|
||||
bool log_always;
|
||||
|
@ -1882,7 +1882,8 @@ static void nb_load_callbacks(const struct frr_yang_module_info *module)
|
||||
}
|
||||
|
||||
void nb_init(struct thread_master *tm,
|
||||
const struct frr_yang_module_info *modules[], size_t nmodules)
|
||||
const struct frr_yang_module_info *const modules[],
|
||||
size_t nmodules)
|
||||
{
|
||||
unsigned int errors = 0;
|
||||
|
||||
|
@ -1010,7 +1010,8 @@ extern const char *nb_client_name(enum nb_client client);
|
||||
* nmodules
|
||||
* Size of the modules array.
|
||||
*/
|
||||
extern void nb_init(struct thread_master *tm, const struct frr_yang_module_info *modules[],
|
||||
extern void nb_init(struct thread_master *tm,
|
||||
const struct frr_yang_module_info *const modules[],
|
||||
size_t nmodules);
|
||||
|
||||
/*
|
||||
|
@ -116,7 +116,7 @@ static struct quagga_signal_t sighandlers[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *nhrpd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const nhrpd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
||||
|
@ -166,7 +166,7 @@ struct quagga_signal_t ospf6_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *ospf6d_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const ospf6d_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
||||
|
@ -123,7 +123,7 @@ struct quagga_signal_t ospf_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *ospfd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const ospfd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
||||
|
@ -112,7 +112,7 @@ struct quagga_signal_t pbr_signals[] = {
|
||||
|
||||
#define PBR_VTY_PORT 2615
|
||||
|
||||
static const struct frr_yang_module_info *pbrd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const pbrd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
||||
|
@ -72,7 +72,7 @@ struct zebra_privs_t pimd_privs = {
|
||||
.cap_num_p = array_size(_caps_p),
|
||||
.cap_num_i = 0};
|
||||
|
||||
static const struct frr_yang_module_info *pimd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const pimd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
||||
|
@ -113,7 +113,7 @@ static struct quagga_signal_t ripd_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *ripd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const ripd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
&frr_ripd_info,
|
||||
};
|
||||
|
@ -113,7 +113,7 @@ struct quagga_signal_t ripng_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *ripngd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const ripngd_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
&frr_ripngd_info,
|
||||
};
|
||||
|
@ -111,7 +111,7 @@ struct quagga_signal_t sharp_signals[] = {
|
||||
|
||||
#define SHARP_VTY_PORT 2614
|
||||
|
||||
static const struct frr_yang_module_info *sharpd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const sharpd_yang_modules[] = {
|
||||
};
|
||||
|
||||
FRR_DAEMON_INFO(sharpd, SHARP, .vty_port = SHARP_VTY_PORT,
|
||||
|
@ -100,7 +100,7 @@ struct quagga_signal_t static_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *staticd_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const staticd_yang_modules[] = {
|
||||
};
|
||||
|
||||
#define STATIC_VTY_PORT 2616
|
||||
|
@ -271,7 +271,7 @@ const struct frr_yang_module_info frr_test_module_info = {
|
||||
};
|
||||
/* clang-format on */
|
||||
|
||||
static const struct frr_yang_module_info *modules[] = {
|
||||
static const struct frr_yang_module_info *const modules[] = {
|
||||
&frr_test_module_info,
|
||||
};
|
||||
|
||||
|
@ -105,7 +105,7 @@ struct quagga_signal_t vrrp_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *vrrp_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const vrrp_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
||||
|
@ -229,7 +229,7 @@ struct quagga_signal_t zebra_signals[] = {
|
||||
},
|
||||
};
|
||||
|
||||
static const struct frr_yang_module_info *zebra_yang_modules[] = {
|
||||
static const struct frr_yang_module_info *const zebra_yang_modules[] = {
|
||||
&frr_interface_info,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user