From: Stephen Hemminger Date: Fri, 15 May 2009 17:02:27 +0000 (-0700) Subject: [bgpd/cleanup] Make BGP FSM table read-only static X-Git-Tag: frr-2.0-rc1~2302 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=fda1d3e033f98c7e34ccdaead27e8df39af12a85;p=matthieu%2Ffrr.git [bgpd/cleanup] Make BGP FSM table read-only static The finite state machine table is immutable. --- diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c index 9248573102..bf4b66b06b 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] =