]> git.puffer.fish Git - matthieu/frr.git/commitdiff
[bgpd/cleanup] Make BGP FSM table read-only static
authorStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 15 May 2009 17:02:27 +0000 (10:02 -0700)
committerPaul Jakma <paul@quagga.net>
Thu, 18 Jun 2009 19:18:28 +0000 (20:18 +0100)
The finite state machine table is immutable.

bgpd/bgp_fsm.c

index 924857310234811e1ced1fbe85c21f502efa47a7..bf4b66b06b79460f633de01899cc9697cd473dab 100644 (file)
@@ -901,7 +901,7 @@ bgp_ignore (struct peer *peer)
 }
 \f
 /* Finite State Machine structure */
-struct {
+static const struct {
   int (*func) (struct peer *);
   int next_state;
 } FSM [BGP_STATUS_MAX - 1][BGP_EVENTS_MAX - 1] =