diff options
Diffstat (limited to 'src/tbf.c')
-rw-r--r-- | src/tbf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -193,13 +193,13 @@ tree_delete_node_unlocked(struct tree *tree, struct node *node) /* No right subtree: link the left subtree to the parent slot */ *slot = node->child[CHILD_LEFT]; if (node->child[CHILD_LEFT]) node->child[CHILD_LEFT]->parent = parent; } else { /* Node has both subtrees. Find the largest value in the - right subtree */ + left subtree */ struct node *p; for (p = node->child[CHILD_LEFT]; p->child[CHILD_RIGHT]; p = p->child[CHILD_RIGHT]) ; p->child[CHILD_RIGHT] = node->child[CHILD_RIGHT]; @@ -833,13 +833,13 @@ tbf_release_tree(struct tree **t) { tree_unref(t); } static void -tbf_exit() +tbf_exit(void) { if (tbf_dump_file_name) { struct tree *t = tbf_get_tree(); tree_dump(t, tbf_dump_file_name); tbf_release_tree(&t); } |