]> git.puffer.fish Git - matthieu/frr.git/commitdiff
lib: Use correct if compare function in tree proto
authorStephen Worley <sworley@cumulusnetworks.com>
Wed, 9 Oct 2019 20:43:27 +0000 (16:43 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Tue, 15 Oct 2019 21:19:12 +0000 (17:19 -0400)
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>
lib/if.h

index e3ec278f9fbae0cc99d59aceef25c746f27cabd8..d2f0f87b71b2c07b47678623ef36ebabff7e2f38 100644 (file)
--- a/lib/if.h
+++ b/lib/if.h
@@ -299,7 +299,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)                                             \