ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/hopm/trunk/src/patricia.c
(Generate patch)

Comparing ircd-hybrid/trunk/src/patricia.c (file contents):
Revision 7843 by michael, Sun Nov 6 13:55:28 2016 UTC vs.
Revision 7844 by michael, Sun Nov 6 13:58:59 2016 UTC

# Line 512 | Line 512 | patricia_lookup(patricia_tree_t *patrici
512      node = xcalloc(sizeof *node);
513      node->bit = prefix->bitlen;
514      node->prefix = Ref_Prefix (prefix);
515    node->parent = NULL;
516    node->l = node->r = NULL;
517    node->data = NULL;
515      patricia->head = node;
516   #ifdef PATRICIA_DEBUG
517      fprintf(stderr, "patricia_lookup: new_node #0 %s/%d (head)\n",
# Line 641 | Line 638 | patricia_lookup(patricia_tree_t *patrici
638  
639    new_node = xcalloc(sizeof *new_node);
640    new_node->bit = prefix->bitlen;
641 <  new_node->prefix = Ref_Prefix (prefix);
645 <  new_node->parent = NULL;
646 <  new_node->l = new_node->r = NULL;
647 <  new_node->data = NULL;
641 >  new_node->prefix = Ref_Prefix(prefix);
642    patricia->num_active_node++;
643  
644    if (node->bit == differ_bit)
# Line 705 | Line 699 | patricia_lookup(patricia_tree_t *patrici
699    {
700      glue = xcalloc(sizeof *glue);
701      glue->bit = differ_bit;
708    glue->prefix = NULL;
702      glue->parent = node->parent;
710    glue->data = NULL;
703      patricia->num_active_node++;
704  
705      if (differ_bit < patricia->maxbits && BIT_TEST(addr[differ_bit >> 3], 0x80 >> (differ_bit & 0x07)))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines