]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
LDAP usertab feature added
authorPedro Orso <orso@users.sourceforge.net>
Fri, 11 Dec 2009 17:21:33 +0000 (17:21 +0000)
committerPedro Orso <orso@users.sourceforge.net>
Fri, 11 Dec 2009 17:21:33 +0000 (17:21 +0000)
btree_cache.c

index f04bb55d448f93182adb0e2ba9c1fd6dd671f0ec..b3b9005e120cc068d35ca66aad942ad2f774c28f 100644 (file)
 #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 );
 }