]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_ism.c
ospfd: interface name and ip address can be 32 bytes
[mirror_frr.git] / ospfd / ospf_ism.c
index 419081fe592d410cd2ccab4e071cc5f575d03a2d..e394b6f472b4f58f2d4439a46c817a269b9245bb 100644 (file)
@@ -418,7 +418,7 @@ static int ism_ignore(struct ospf_interface *oi)
 }
 
 /* Interface State Machine */
-struct {
+const struct {
        int (*func)(struct ospf_interface *);
        int next_state;
 } ISM[OSPF_ISM_STATE_MAX][OSPF_ISM_EVENT_MAX] = {
@@ -512,7 +512,7 @@ struct {
        },
 };
 
-static const char *ospf_ism_event_str[] = {
+static const char *const ospf_ism_event_str[] = {
        "NoEvent",      "InterfaceUp", "WaitTimer", "BackupSeen",
        "NeighborChange", "LoopInd",     "UnLoopInd", "InterfaceDown",
 };