diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-10-30 01:05:27 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-11-02 21:13:44 +0100 |
commit | 63265b5c1f9fb28946376b535a814bec1dbd19ed (patch) | |
tree | e244c4ed35ac29185f6d77092f646f19fa704b65 /pimd/pim_tlv.c | |
parent | Merge pull request #5263 from donaldsharp/pim_excessive_warnings (diff) | |
download | frr-63265b5c1f9fb28946376b535a814bec1dbd19ed.tar.xz frr-63265b5c1f9fb28946376b535a814bec1dbd19ed.zip |
*: Convert prefix_free to double pointer
Have the prefix_free code take a double pointer to free the data.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_tlv.c')
-rw-r--r-- | pimd/pim_tlv.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_tlv.c b/pimd/pim_tlv.c index d93a36044..4fe323739 100644 --- a/pimd/pim_tlv.c +++ b/pimd/pim_tlv.c @@ -757,8 +757,7 @@ int pim_tlv_parse_addr_list(const char *ifname, struct in_addr src_addr, */ if (!*hello_option_addr_list) { *hello_option_addr_list = list_new(); - (*hello_option_addr_list)->del = - (void (*)(void *))prefix_free; + (*hello_option_addr_list)->del = prefix_free_lists; } /* |