summaryrefslogtreecommitdiff
path: root/ospfd/ospf_main.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-11-20 17:26:59 +0100
committerDavid Lamparter <equinox@diac24.net>2019-12-02 15:01:29 +0100
commit2b64873d24730882af68bdf2881aa380a3a8d17f (patch)
tree7bb835e81d96fc17ec5d1bed8bb5f5857a9673ad /ospfd/ospf_main.c
parent0d8c7a26a1e5dbbd36df79751b2468276bd7ec20 (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_main.c')
-rw-r--r--ospfd/ospf_main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index f6cd0fc833..a542b4da83 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -72,9 +72,11 @@ struct zebra_privs_t ospfd_privs = {
.cap_num_i = 0};
/* OSPFd options. */
-struct option longopts[] = {{"instance", required_argument, NULL, 'n'},
- {"apiserver", no_argument, NULL, 'a'},
- {0}};
+const struct option longopts[] = {
+ {"instance", required_argument, NULL, 'n'},
+ {"apiserver", no_argument, NULL, 'a'},
+ {0}
+};
/* OSPFd program name */