Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
33c3b6c2
Commit
33c3b6c2
authored
Mar 04, 2017
by
Dave Taht
Committed by
Juliusz Chroboczek
Mar 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
De-tabify route.c
route.c was the only routine in all of babeld that had tabs creep in.
parent
5c8927de
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
route.c
route.c
+8
-8
No files found.
route.c
View file @
33c3b6c2
...
...
@@ -435,14 +435,14 @@ route_stream_done(struct route_stream *stream)
int
metric_to_kernel
(
int
metric
)
{
if
(
metric
>=
INFINITY
)
{
return
KERNEL_INFINITY
;
}
else
if
(
reflect_kernel_metric
)
{
int
r
=
kernel_metric
+
metric
;
return
r
>=
KERNEL_INFINITY
?
KERNEL_INFINITY
:
r
;
}
else
{
return
kernel_metric
;
}
if
(
metric
>=
INFINITY
)
{
return
KERNEL_INFINITY
;
}
else
if
(
reflect_kernel_metric
)
{
int
r
=
kernel_metric
+
metric
;
return
r
>=
KERNEL_INFINITY
?
KERNEL_INFINITY
:
r
;
}
else
{
return
kernel_metric
;
}
}
/* This is used to maintain the invariant that the installed route is at
...
...
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