]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
Remove some dead code and add some comments
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Oct 2019 15:36:18 +0000 (15:36 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 3 Oct 2019 15:36:18 +0000 (15:36 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/database.c

index 7950b46c943758de5a729a3bb561c254b5ac4e83..710fa5641fe37c5708d6bb831111d9354fdb66c6 100644 (file)
@@ -725,12 +725,10 @@ static int loc_database_enumerator_network_depth_first_search(
                        continue;
                }
 
                        continue;
                }
 
+               // Mark the bits on the path correctly
                in6_addr_set_bit(&e->network_address,
                        (node->depth > 0) ? node->depth - 1 : 0, node->i);
 
                in6_addr_set_bit(&e->network_address,
                        (node->depth > 0) ? node->depth - 1 : 0, node->i);
 
-               //for (unsigned int i = stack->depth + 1; i < 128; i++)
-               //      in6_addr_set_bit(&e->network_address, i, 0);
-
                DEBUG(e->ctx, "Looking at node %jd\n", node->offset);
                e->networks_visited[node->offset]++;
 
                DEBUG(e->ctx, "Looking at node %jd\n", node->offset);
                e->networks_visited[node->offset]++;