summaryrefslogtreecommitdiff
path: root/ospfd/ospf_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospfd/ospf_main.c')
-rw-r--r--ospfd/ospf_main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ospfd/ospf_main.c b/ospfd/ospf_main.c
index a7e56dcd..7e4d45d3 100644
--- a/ospfd/ospf_main.c
+++ b/ospfd/ospf_main.c
@@ -100,8 +100,7 @@ struct thread_master *master;
/* Process ID saved for use by init system */
const char *pid_file = PATH_OSPFD_PID;
-/* OSPF apiserver is disabled by default. */
-int ospf_apiserver_enable = 0;
+extern int ospf_apiserver_enable;
/* Help information display. */
static void
@@ -205,6 +204,9 @@ main (int argc, char **argv)
/* OSPF master init. */
ospf_master_init ();
+ /* OSPF apiserver is disabled by default. */
+ ospf_apiserver_enable = 0;
+
while (1)
{
int opt;