From 89f1d91ecc20e0b8c1789e12b61f9ae20629443f Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 7 Sep 2016 08:51:29 -0400 Subject: [PATCH] pimd: Refactor pim_find_primary_addr The pim_find_primary_addr function just called 1 static function that was called no where else. Signed-off-by: Donald Sharp --- pimd/pim_iface.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pimd/pim_iface.c b/pimd/pim_iface.c index 503be0d0bc..43c5f4b142 100644 --- a/pimd/pim_iface.c +++ b/pimd/pim_iface.c @@ -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 -- 2.39.5