projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec72439
)
Fix comparisation conditions in route_cmp()
author
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 9 Apr 2013 12:16:19 +0000
(14:16 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Tue, 9 Apr 2013 12:16:19 +0000
(14:16 +0200)
interface-ip.c
patch
|
blob
|
history
diff --git
a/interface-ip.c
b/interface-ip.c
index 7155fe4a404ba09f2ba87bb33b2dc2cdc120db29..bf7cf407787df0713a82355c2dfc0fa3b505ca55 100644
(file)
--- 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)