diff options
| author | David Lamparter <equinox@diac24.net> | 2019-11-20 17:26:59 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-12-02 15:01:29 +0100 |
| commit | 2b64873d24730882af68bdf2881aa380a3a8d17f (patch) | |
| tree | 7bb835e81d96fc17ec5d1bed8bb5f5857a9673ad /ospfd/ospf_nsm.c | |
| parent | 0d8c7a26a1e5dbbd36df79751b2468276bd7ec20 (diff) | |
*: generously apply const
const const const your boat, merrily down the stream...
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'ospfd/ospf_nsm.c')
| -rw-r--r-- | ospfd/ospf_nsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c index 9f6be3cbc7..0fc2cd60f9 100644 --- a/ospfd/ospf_nsm.c +++ b/ospfd/ospf_nsm.c @@ -399,7 +399,7 @@ static int nsm_kill_nbr(struct ospf_neighbor *nbr) } /* Neighbor State Machine */ -struct { +const struct { int (*func)(struct ospf_neighbor *); int next_state; } NSM[OSPF_NSM_STATE_MAX][OSPF_NSM_EVENT_MAX] = { @@ -575,7 +575,7 @@ struct { }, }; -static const char *ospf_nsm_event_str[] = { +static const char *const ospf_nsm_event_str[] = { "NoEvent", "PacketReceived", "Start", "2-WayReceived", "NegotiationDone", "ExchangeDone", "BadLSReq", "LoadingDone", "AdjOK?", |
