]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: protect ebimtree/ebistree against multiple inclusions
authorWilly Tarreau <w@1wt.eu>
Sat, 15 Mar 2014 06:43:05 +0000 (07:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Mar 2014 06:48:25 +0000 (07:48 +0100)
These two files were missing the usual #ifndef around the code.
(cherry picked from commit f2873b23705ff08ca3ab4f1a6b27050e572e1d9e)

ebtree/ebimtree.h
ebtree/ebistree.h

index 1fe9fa0acba5caa80f240210f6344cf5dc8eb7ad..99e75039b8e26aa10d42d5fb9856b128010ff5c5 100644 (file)
@@ -18,6 +18,9 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#ifndef _EBIMTREE_H
+#define _EBIMTREE_H
+
 #include <string.h>
 #include "ebtree.h"
 #include "ebpttree.h"
@@ -317,3 +320,5 @@ __ebim_insert(struct eb_root *root, struct ebpt_node *new, unsigned int len)
        root->b[side] = eb_dotag(&new->node.branches, EB_NODE);
        return new;
 }
+
+#endif /* _EBIMTREE_H */
index a1fbb76c45729c29e1e2a08efbeb7fbe2996da9a..e1bcbc708866f374e6c6e7ca03145654e9db9906 100644 (file)
@@ -20,6 +20,9 @@
 
 /* These functions and macros rely on Multi-Byte nodes */
 
+#ifndef _EBISTREE_H
+#define _EBISTREE_H
+
 #include <string.h>
 #include "ebtree.h"
 #include "ebpttree.h"
@@ -323,3 +326,4 @@ __ebis_insert(struct eb_root *root, struct ebpt_node *new)
        return new;
 }
 
+#endif /* _EBISTREE_H */