Commit 3c3049fa authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Make kernel_metric signed.

parent 2c52e86a
...@@ -41,7 +41,7 @@ THE SOFTWARE. ...@@ -41,7 +41,7 @@ THE SOFTWARE.
struct route *routes = NULL; struct route *routes = NULL;
int numroutes = 0, maxroutes = 0; int numroutes = 0, maxroutes = 0;
unsigned kernel_metric = 0; int kernel_metric = 0;
struct route * struct route *
find_route(const unsigned char *prefix, unsigned char plen, find_route(const unsigned char *prefix, unsigned char plen,
......
...@@ -34,7 +34,7 @@ struct route { ...@@ -34,7 +34,7 @@ struct route {
extern struct route *routes; extern struct route *routes;
extern int numroutes, maxroutes; extern int numroutes, maxroutes;
extern unsigned kernel_metric; extern int kernel_metric;
struct route *find_route(const unsigned char *prefix, unsigned char plen, struct route *find_route(const unsigned char *prefix, unsigned char plen,
struct neighbour *neigh, const unsigned char *nexthop); struct neighbour *neigh, const unsigned char *nexthop);
......
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