diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2014-11-03 01:20:09 +0000 |
---|---|---|
committer | Vincent JARDIN <vincent.jardin@6wind.com> | 2014-11-03 06:51:10 +0100 |
commit | 88d37b902bc8127379d3293b9671aa6a11479c23 (patch) | |
tree | 33ff1c38d47bfb7f940d56c53727aa9db31ddb40 | |
parent | 9511633e08ff15c23608983fdc1bc735d427332e (diff) | |
download | quagga-88d37b902bc8127379d3293b9671aa6a11479c23.tar.bz2 quagga-88d37b902bc8127379d3293b9671aa6a11479c23.tar.xz |
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>
-rw-r--r-- | isisd/isis_pdu.c | 2 | ||||
-rw-r--r-- | ripd/rip_interface.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_pdu.c b/isisd/isis_pdu.c index e0208fa4..8d8a5e00 100644 --- a/isisd/isis_pdu.c +++ b/isisd/isis_pdu.c @@ -62,7 +62,7 @@ #endif /* PNBBY */ /* Utility mask array. */ -static u_char maskbit[] = { +static const u_char maskbit[] = { 0x00, 0x80, 0xc0, 0xe0, 0xf0, 0xf8, 0xfc, 0xfe, 0xff }; diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index bdd319e1..35685a75 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -50,7 +50,7 @@ static int rip_enable_if_lookup (const char *ifname); static int rip_enable_network_lookup2 (struct connected *connected); 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_2, "2"}, |