diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-31 16:43:36 -0400 |
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2017-03-31 16:47:00 -0400 |
| commit | ff3745c26abdfbebeebf14ffe55361666771e1a7 (patch) | |
| tree | ff24d60ebc1aaca943a3110ef9908e4b4c5863ee /pimd/pim_rp.h | |
| parent | 8cb129e9868eb5edb7bfe98917fad9931de6144b (diff) | |
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_rp.h b/pimd/pim_rp.h index e5580cfa63..84ab9be482 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 |
