diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-04-09 14:16:19 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-04-09 14:16:19 +0200 |
commit | cdd7dc012c8f84828cd85722d48180fab8f1f7a5 (patch) | |
tree | cdedf8bb0946d1c90b3585f750d8174fc4b70998 /interface-ip.c | |
parent | ec72439d9960e6f37293c715c3f7b9584b03ddd8 (diff) |
Fix comparisation conditions in route_cmp()
Diffstat (limited to 'interface-ip.c')
-rw-r--r-- | interface-ip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-ip.c b/interface-ip.c index 7155fe4..bf7cf40 100644 --- a/interface-ip.c +++ b/interface-ip.c @@ -289,10 +289,10 @@ route_cmp(const void *k1, const void *k2, void *ptr) { const struct device_route *r1 = k1, *r2 = k2; - if (r1->mask != r2->mask); + if (r1->mask != r2->mask) return r2->mask - r1->mask; - if (r1->metric != r2->metric); + if (r1->metric != r2->metric) return r1->metric - r2->metric; if (r1->flags != r2->flags) |