From db8d54b0981ec5c642da708dcb188d5d6243a5cc Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Wed, 9 Oct 2019 16:43:27 -0400 Subject: [PATCH] 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 --- lib/if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/if.h b/lib/if.h index a3c6e9ff5b..51db7bb8ed 100644 --- a/lib/if.h +++ b/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) \