Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libloc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
libloc
Commits
74fb733a
Commit
74fb733a
authored
Oct 03, 2019
by
Michael Tremer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove some dead code and add some comments
Signed-off-by:
Michael Tremer
<
michael.tremer@ipfire.org
>
parent
fe483cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/database.c
src/database.c
+1
-3
No files found.
src/database.c
View file @
74fb733a
...
@@ -725,12 +725,10 @@ static int loc_database_enumerator_network_depth_first_search(
...
@@ -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
,
in6_addr_set_bit
(
&
e
->
network_address
,
(
node
->
depth
>
0
)
?
node
->
depth
-
1
:
0
,
node
->
i
);
(
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
);
DEBUG
(
e
->
ctx
,
"Looking at node %jd
\n
"
,
node
->
offset
);
e
->
networks_visited
[
node
->
offset
]
++
;
e
->
networks_visited
[
node
->
offset
]
++
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment