Browse Source

ospfd: Update nsm_change_state to static scope, as it is not called from elsewhere

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Andrew Certain 7 years ago
parent
commit
de54b26cac
2 changed files with 1 additions and 2 deletions
  1. 1 1
      ospfd/ospf_nsm.c
  2. 0 1
      ospfd/ospf_nsm.h

+ 1 - 1
ospfd/ospf_nsm.c

@@ -643,7 +643,7 @@ nsm_notice_state_change (struct ospf_neighbor *nbr, int next_state, int event)
 #endif
 }
 
-void
+static void
 nsm_change_state (struct ospf_neighbor *nbr, int state)
 {
   struct ospf_interface *oi = nbr->oi;

+ 0 - 1
ospfd/ospf_nsm.h

@@ -81,7 +81,6 @@
 
 /* Prototypes. */
 extern int ospf_nsm_event (struct thread *);
-extern void nsm_change_state (struct ospf_neighbor *, int);
 extern void ospf_check_nbr_loading (struct ospf_neighbor *);
 extern int ospf_db_summary_isempty (struct ospf_neighbor *);
 extern int ospf_db_summary_count (struct ospf_neighbor *);