summaryrefslogtreecommitdiffstats
path: root/bfdd/bfdd.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfdd/bfdd.c')
-rw-r--r--bfdd/bfdd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfdd/bfdd.c b/bfdd/bfdd.c
index a9528646d..341edbe5c 100644
--- a/bfdd/bfdd.c
+++ b/bfdd/bfdd.c
@@ -122,7 +122,7 @@ FRR_DAEMON_INFO(bfdd, BFD, .vty_port = 2617,
.n_yang_modules = array_size(bfdd_yang_modules))
#define OPTION_CTLSOCK 1001
-static struct option longopts[] = {
+static const struct option longopts[] = {
{"bfdctl", required_argument, NULL, OPTION_CTLSOCK},
{0}
};
@@ -133,7 +133,7 @@ static struct option longopts[] = {
*/
struct bfd_global bglobal;
-struct bfd_diag_str_list diag_list[] = {
+const struct bfd_diag_str_list diag_list[] = {
{.str = "control-expired", .type = BD_CONTROL_EXPIRED},
{.str = "echo-failed", .type = BD_ECHO_FAILED},
{.str = "neighbor-down", .type = BD_NEIGHBOR_DOWN},
@@ -145,7 +145,7 @@ struct bfd_diag_str_list diag_list[] = {
{.str = NULL},
};
-struct bfd_state_str_list state_list[] = {
+const struct bfd_state_str_list state_list[] = {
{.str = "admin-down", .type = PTM_BFD_ADM_DOWN},
{.str = "down", .type = PTM_BFD_DOWN},
{.str = "init", .type = PTM_BFD_INIT},