summaryrefslogtreecommitdiffhomepage
path: root/interface-ip.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-09-04 14:07:28 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-09-04 14:07:28 +0200
commit07a47add60b567f65dd2051fe45ac49e1ae97524 (patch)
tree6f1a450a6d1c3c180a3d49cf14d90253ce1a5613 /interface-ip.c
parent84b04742fed90f8647c0c78396bd4b690cab5a33 (diff)
use list_add_tail instead of list_add
Diffstat (limited to 'interface-ip.c')
-rw-r--r--interface-ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/interface-ip.c b/interface-ip.c
index 6c673c6..2a26a4a 100644
--- a/interface-ip.c
+++ b/interface-ip.c
@@ -18,7 +18,7 @@ int interface_add_address(struct interface *iface, struct device_addr *addr)
else
family = AF_INET;
- list_add(&addr->list, &iface->address);
+ list_add_tail(&addr->list, &iface->address);
return system_add_address(iface->l3_iface->dev, addr);
}
@@ -49,7 +49,7 @@ void interface_del_ctx_addr(struct interface *iface, void *ctx)
int interface_add_route(struct interface *iface, struct device_route *route)
{
- list_add(&route->list, &iface->routes);
+ list_add_tail(&route->list, &iface->routes);
return system_add_route(iface->l3_iface->dev, route);
}