]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ebtree: remove 4-year old harmless typo in duplicates insertion code
authorWilly Tarreau <w@1wt.eu>
Mon, 19 Sep 2011 18:36:45 +0000 (20:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 2 Dec 2011 16:09:50 +0000 (17:09 +0100)
(from ebtree 6.0.7)

This typo has been there since we introduced duplicates. A "struct eb_troot *"
which apparently the compiler doesn't complain about while it is never declared
anywhere. Amazing...

(cherry picked from commit 2879648db5d32cf009ae571cb0e8e1df75152281)

ebtree/ebtree.h

index 2ec9dc7dd57aae52e43435432d9feb13a2d598ee..eb7d0216c9e0a0916c56c6d54ec67812374f4683 100644 (file)
@@ -456,9 +456,9 @@ __eb_insert_dup(struct eb_node *sub, struct eb_node *new)
 {
        struct eb_node *head = sub;
        
-       struct eb_troot *new_left = eb_dotag(&new->branches, EB_LEFT);
-       struct eb_troot *new_rght = eb_dotag(&new->branches, EB_RGHT);
-       struct eb_troot *new_leaf = eb_dotag(&new->branches, EB_LEAF);
+       eb_troot_t *new_left = eb_dotag(&new->branches, EB_LEFT);
+       eb_troot_t *new_rght = eb_dotag(&new->branches, EB_RGHT);
+       eb_troot_t *new_leaf = eb_dotag(&new->branches, EB_LEAF);
 
        /* first, identify the deepest hole on the right branch */
        while (eb_gettag(head->branches.b[EB_RGHT]) != EB_LEAF) {