Commit 7b3873c6 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Simplify flush_route.

parent 2dc85a4b
......@@ -67,13 +67,14 @@ flush_route(struct route *route)
{
int n;
unsigned char dest[16];
int install = 0, oldmetric = INFINITY;
int install = 0, oldmetric;
n = route - routes;
assert(n >= 0 && n < numroutes);
if(route->installed) {
oldmetric = route->metric;
if(route->installed) {
uninstall_route(route);
install = 1;
}
......
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