]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/bgp_io.c
*: generously apply const
[mirror_frr.git] / bgpd / bgp_io.c
index 9e1c89b71c86b6b019ab8ef064a101f3c894ac59..fed34e5b65ca375904c19da9068027a75c1552c5 100644 (file)
@@ -508,7 +508,7 @@ static bool validate_header(struct peer *peer)
        uint8_t type;
        struct ringbuf *pkt = peer->ibuf_work;
 
-       static uint8_t m_correct[BGP_MARKER_SIZE] = {
+       static const uint8_t m_correct[BGP_MARKER_SIZE] = {
                0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
                0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
        uint8_t m_rx[BGP_MARKER_SIZE] = {0x00};