diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 10:16:34 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-05-15 10:16:34 -0700 |
commit | b8a3feae6436804827d5c9d67fa2e4761084b529 (patch) | |
tree | d25bf0ba6daed5aadeac6efc06a0419ca499230d | |
parent | 9e43964f341f4a0841e130a5536172363c05e57b (diff) | |
download | quagga-b8a3feae6436804827d5c9d67fa2e4761084b529.tar.bz2 quagga-b8a3feae6436804827d5c9d67fa2e4761084b529.tar.xz |
BGP make message list in bgp_open const
-rw-r--r-- | bgpd/bgp_open.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index 540edad0..37595817 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -194,20 +194,22 @@ bgp_capability_orf_not_support (struct peer *peer, afi_t afi, safi_t safi, peer->host, afi, safi, type, mode); } -static struct message orf_type_str[] = +static const struct message orf_type_str[] = { { ORF_TYPE_PREFIX, "Prefixlist" }, { ORF_TYPE_PREFIX_OLD, "Prefixlist (old)" }, }; -static int orf_type_str_max = sizeof(orf_type_str)/sizeof(orf_type_str[0]); +static const int orf_type_str_max + = sizeof(orf_type_str)/sizeof(orf_type_str[0]); -static struct message orf_mode_str[] = +static const struct message orf_mode_str[] = { { ORF_MODE_RECEIVE, "Receive" }, { ORF_MODE_SEND, "Send" }, { ORF_MODE_BOTH, "Both" }, }; -static int orf_mode_str_max = sizeof(orf_mode_str)/sizeof(orf_mode_str[0]); +static const int orf_mode_str_max + = sizeof(orf_mode_str)/sizeof(orf_mode_str[0]); static int bgp_capability_orf_entry (struct peer *peer, struct capability_header *hdr) |