#include "stream.h"
#include "log.h"
#include "memory.h"
-#include "memory_vty.h"
#include "privs.h"
#include "sigevent.h"
#include "zclient.h"
.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 */
},
};
-static const struct frr_yang_module_info *ospfd_yang_modules[] = {
+static const struct frr_yang_module_info *const ospfd_yang_modules[] = {
&frr_interface_info,
};
/* OSPF errors init */
ospf_error_init();
- /* Need to initialize the default ospf structure, so the interface mode
- commands can be duly processed if they are received before 'router
- ospf',
- when quagga(ospfd) is restarted */
- if (!ospf_get_instance(instance)) {
- flog_err(EC_OSPF_INIT_FAIL, "OSPF instance init failed: %s",
- strerror(errno));
- exit(1);
- }
-
frr_config_fork();
frr_run(master);