summaryrefslogtreecommitdiffstats
path: root/pimd/pim_rp.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-31 22:43:36 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-31 22:47:00 +0200
commitff3745c26abdfbebeebf14ffe55361666771e1a7 (patch)
treeff24d60ebc1aaca943a3110ef9908e4b4c5863ee /pimd/pim_rp.h
parentpimd: Cleanup api and stop crash (diff)
downloadfrr-ff3745c26abdfbebeebf14ffe55361666771e1a7.tar.xz
frr-ff3745c26abdfbebeebf14ffe55361666771e1a7.zip
pimd: Remove impossible conditions from test
It is impossible for the list->cmp function to ever be handed NULL values as the arguments. Clean up this in the code. Additionally consolidate the exact same two functions into 1 function. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_rp.h')
-rw-r--r--pimd/pim_rp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_rp.h b/pimd/pim_rp.h
index e5580cfa6..84ab9be48 100644
--- a/pimd/pim_rp.h
+++ b/pimd/pim_rp.h
@@ -61,4 +61,6 @@ struct pim_rpf *pim_rp_g (struct in_addr group);
#define RP(G) pim_rp_g ((G))
void pim_rp_show_information (struct vty *vty, u_char uj);
+
+int pim_rp_list_cmp (void *v1, void *v2);
#endif