Commit 33c3b6c2 authored by Dave Taht's avatar Dave Taht Committed by Juliusz Chroboczek

De-tabify route.c

route.c was the only routine in all of babeld that had tabs creep in.
parent 5c8927de
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment