summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-15 10:02:27 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-05-15 10:02:27 -0700
commit26e55e55ae93c46a9a0424d70c7b1573d77f1bc0 (patch)
treead70df3913c2497d21aec74bac1de07683facbe7
parent5fc8ce3e00323facc86ae7abf418d0c9cb0f36d6 (diff)
downloadquagga-26e55e55ae93c46a9a0424d70c7b1573d77f1bc0.tar.bz2
quagga-26e55e55ae93c46a9a0424d70c7b1573d77f1bc0.tar.xz
Make BGP FSM table read-only static
The finite state machine table is immutable.
-rw-r--r--bgpd/bgp_fsm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index 92485731..bf4b66b0 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -901,7 +901,7 @@ bgp_ignore (struct peer *peer)
}
/* Finite State Machine structure */
-struct {
+static const struct {
int (*func) (struct peer *);
int next_state;
} FSM [BGP_STATUS_MAX - 1][BGP_EVENTS_MAX - 1] =