]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospfd/ospf_main.c
ospfd: interface name and ip address can be 32 bytes
[mirror_frr.git] / ospfd / ospf_main.c
index bee7bbb21d02de10a4de2b09732534a3c33ab016..a542b4da8373859a70f6faddbdd87e3470cc7ba2 100644 (file)
@@ -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 */
 
@@ -123,7 +125,7 @@ struct quagga_signal_t ospf_signals[] = {
        },
 };
 
-static const struct frr_yang_module_info *ospfd_yang_modules[] = {
+static const struct frr_yang_module_info *const ospfd_yang_modules[] = {
        &frr_interface_info,
 };