From ed5b76c61225b9abca9643072ef16ded73f60475 Mon Sep 17 00:00:00 2001 From: Pedro Orso Date: Fri, 11 Dec 2009 17:21:33 +0000 Subject: [PATCH] LDAP usertab feature added --- btree_cache.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/btree_cache.c b/btree_cache.c index f04bb55..b3b9005 100644 --- a/btree_cache.c +++ b/btree_cache.c @@ -32,11 +32,9 @@ #define AVL_DOUBLE_LEFT_ROTATION 4 struct bt { - char value[64], targetattr[256]; - struct bt *left, *right; - int balanceinfo; - // -1 - ÐÅÒÅ×ÅÛÉ×ÁÅÔ ×ÌÅ×Ï - // +1 - ÐÅÒÅ×ÅÛÉ×ÁÅÔ ×ÐÒÁ×Ï + char value[64], targetattr[256]; + struct bt *left, *right; + int balanceinfo; }; struct bt *root_bt = NULL; @@ -135,7 +133,6 @@ int get_length(struct bt *node, int d) l_depth = get_length(node->left, d+1); if (node->right) r_depth = get_length(node->right, d+1); - // ÷ÏÚ×ÒÁÝÁÅÍ ÂÏÌØÛÅÅ ÉÚ ÚÎÁÞÅÎÉÊ return( ( l_depth > r_depth ) ? l_depth : r_depth ); } -- 2.47.2