mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 11:47:08 +00:00
lib: Use correct if compare function in tree proto
We were using the incorrect comparison function for the ifindex-based rb tree. Luckily, we were using the correct one in RB_GENERATE so I guess that overwrote what was declared in the prototype? Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
d00d0f9634
commit
db8d54b098
2
lib/if.h
2
lib/if.h
@ -305,7 +305,7 @@ struct interface {
|
||||
RB_HEAD(if_name_head, interface);
|
||||
RB_PROTOTYPE(if_name_head, interface, name_entry, if_cmp_func)
|
||||
RB_HEAD(if_index_head, interface);
|
||||
RB_PROTOTYPE(if_index_head, interface, index_entry, if_cmp_func)
|
||||
RB_PROTOTYPE(if_index_head, interface, index_entry, if_cmp_index_func)
|
||||
DECLARE_QOBJ_TYPE(interface)
|
||||
|
||||
#define IFNAME_RB_INSERT(vrf, ifp) \
|
||||
|
Loading…
Reference in New Issue
Block a user