]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Refactor pim_find_primary_addr
authorDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 7 Sep 2016 12:51:29 +0000 (08:51 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:08 +0000 (20:26 -0500)
The pim_find_primary_addr function just called 1 static function
that was called no where else.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
pimd/pim_iface.c

index 503be0d0bca9908f83821ab1c46c8ac29f676577..43c5f4b1427d20635e4052c1665524d9dcd4c1a5 100644 (file)
@@ -573,7 +573,8 @@ void pim_if_addr_del_all_pim(struct interface *ifp)
   }
 }
 
-static struct in_addr find_first_nonsec_addr(struct interface *ifp)
+struct in_addr
+pim_find_primary_addr (struct interface *ifp)
 {
   struct connected *ifc;
   struct listnode *node;
@@ -602,11 +603,6 @@ static struct in_addr find_first_nonsec_addr(struct interface *ifp)
   return addr;
 }
 
-struct in_addr pim_find_primary_addr(struct interface *ifp)
-{
-  return find_first_nonsec_addr(ifp);
-}
-
 static int pim_iface_vif_index = 0;
 
 static int