]> git.proxmox.com Git - mirror_frr.git/blobdiff - bgpd/rfapi/vnc_export_table.c
Merge pull request #11485 from AbhishekNR/ipv6_mld_todo
[mirror_frr.git] / bgpd / rfapi / vnc_export_table.c
index 8bf1479a25d422a4a4c1799bc70b5548c179fa77..743576d2654ec8c466873c24ef5e99483cd1d7b0 100644 (file)
@@ -119,7 +119,6 @@ struct vnc_export_info *vnc_eti_get(struct bgp *bgp, vnc_export_type_t etype,
                agg_unlock_node(etn);
        } else {
                eti = XCALLOC(MTYPE_RFAPI_ETI, sizeof(struct vnc_export_info));
-               assert(eti);
                eti->node = etn;
                eti->peer = peer;
                peer_lock(peer);
@@ -165,8 +164,9 @@ void vnc_eti_delete(struct vnc_export_info *goner)
 
 struct vnc_export_info *vnc_eti_checktimer(struct bgp *bgp,
                                           vnc_export_type_t etype,
-                                          struct prefix *p, struct peer *peer,
-                                          uint8_t type, uint8_t subtype)
+                                          const struct prefix *p,
+                                          struct peer *peer, uint8_t type,
+                                          uint8_t subtype)
 {
        struct agg_node *etn;
        struct vnc_export_info *eti;