mirror of
https://github.com/nmap/nmap.git
synced 2026-08-31 23:40:57 +00:00
Move declaration to the front to improve compiler compatibility
This commit is contained in:
parent
9af581ec03
commit
71eec581a3
1 changed files with 2 additions and 1 deletions
|
|
@ -365,6 +365,7 @@ static struct trie_node *new_trie_node(const u32 *addr, const u32 *mask)
|
|||
* and one that does not. */
|
||||
static void trie_split (struct trie_node *this, const u32 *addr)
|
||||
{
|
||||
struct trie_node *new_node;
|
||||
u32 new_mask[4] = {0,0,0,0};
|
||||
u8 i;
|
||||
/* Calculate the mask of the common prefix */
|
||||
|
|
@ -375,7 +376,7 @@ static void trie_split (struct trie_node *this, const u32 *addr)
|
|||
}
|
||||
}
|
||||
/* Make a copy of this node to continue matching what it has been */
|
||||
struct trie_node *new_node = new_trie_node(this->addr, this->mask);
|
||||
new_node = new_trie_node(this->addr, this->mask);
|
||||
new_node->next_bit_one = this->next_bit_one;
|
||||
new_node->next_bit_zero = this->next_bit_zero;
|
||||
/* Adjust this node to the smaller mask */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue