mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-01-05 08:31:53 +00:00
Replace goto with else
This commit is contained in:
parent
7ad8a4cfe1
commit
8dee6af44c
@ -582,9 +582,9 @@ third_pass(struct trie_node *node)
|
|||||||
assert(node->potential_buckets[0] != NULL);
|
assert(node->potential_buckets[0] != NULL);
|
||||||
//assert(node->bucket != NULL);
|
//assert(node->bucket != NULL);
|
||||||
node->bucket = node->potential_buckets[0];
|
node->bucket = node->potential_buckets[0];
|
||||||
goto descent;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
const struct aggregator_bucket *inherited_bucket = get_ancestor_bucket(node);
|
const struct aggregator_bucket *inherited_bucket = get_ancestor_bucket(node);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -601,9 +601,9 @@ third_pass(struct trie_node *node)
|
|||||||
assert(node->potential_buckets_count > 0);
|
assert(node->potential_buckets_count > 0);
|
||||||
node->bucket = node->potential_buckets[0];
|
node->bucket = node->potential_buckets[0];
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Preorder traversal */
|
/* Preorder traversal */
|
||||||
descent:
|
|
||||||
third_pass(node->child[0]);
|
third_pass(node->child[0]);
|
||||||
third_pass(node->child[1]);
|
third_pass(node->child[1]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user