mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 22:47:35 +00:00
make some structures constant.
These pre-initialized arrays are not modified. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Acked-by: Feng Lu <lu.feng@6wind.com> (cherry picked from commit 88d37b902bc8127379d3293b9671aa6a11479c23)
This commit is contained in:
parent
0b1e756bbf
commit
bdcf8f59a4
@ -62,7 +62,7 @@
|
|||||||
#endif /* PNBBY */
|
#endif /* PNBBY */
|
||||||
|
|
||||||
/* Utility mask array. */
|
/* Utility mask array. */
|
||||||
static u_char maskbit[] = {
|
static const u_char maskbit[] = {
|
||||||
0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff
|
0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ static int rip_enable_if_lookup (const char *ifname);
|
|||||||
static int rip_enable_network_lookup2 (struct connected *connected);
|
static int rip_enable_network_lookup2 (struct connected *connected);
|
||||||
static void rip_enable_apply_all (void);
|
static void rip_enable_apply_all (void);
|
||||||
|
|
||||||
struct message ri_version_msg[] =
|
const struct message ri_version_msg[] =
|
||||||
{
|
{
|
||||||
{RI_RIP_VERSION_1, "1"},
|
{RI_RIP_VERSION_1, "1"},
|
||||||
{RI_RIP_VERSION_2, "2"},
|
{RI_RIP_VERSION_2, "2"},
|
||||||
|
Loading…
Reference in New Issue
Block a user