]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-common: Use #ifdef to avoid TEST_RB_TREE not defined
authorMartin Schwenke <martin@meltin.net>
Thu, 23 May 2019 07:49:26 +0000 (17:49 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 5 Jun 2019 10:25:50 +0000 (10:25 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/rb_tree.c

index bacdea6c6896fe79a7c375908ff590517ef08494..d94d15efd742fd9129b3311f1fd09c1a331a036c 100644 (file)
@@ -1029,7 +1029,7 @@ trbt_findfirstarray32(trbt_tree_t *tree, uint32_t keylen)
 }
 
 
-#if TEST_RB_TREE
+#ifdef TEST_RB_TREE
 static void printtree(trbt_node_t *node, int levels)
 {
        int i;
@@ -1098,4 +1098,4 @@ exit(0);
 
 }
 
-#endif
+#endif /* TEST_RB_TREE */