summaryrefslogtreecommitdiffstats
path: root/lib/if.h
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-10-09 22:43:27 +0200
committerStephen Worley <sworley@cumulusnetworks.com>2019-10-10 02:09:49 +0200
commitdb8d54b0981ec5c642da708dcb188d5d6243a5cc (patch)
tree7c540305ba67b736237f3dfd6ad589ef404c5910 /lib/if.h
parentMerge pull request #5126 from qlyoung/fix-grpc-build (diff)
downloadfrr-db8d54b0981ec5c642da708dcb188d5d6243a5cc.tar.xz
frr-db8d54b0981ec5c642da708dcb188d5d6243a5cc.zip
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>
Diffstat (limited to 'lib/if.h')
-rw-r--r--lib/if.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/if.h b/lib/if.h
index a3c6e9ff5..51db7bb8e 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) \