diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 14:07:28 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-09-04 14:07:28 +0200 |
commit | 07a47add60b567f65dd2051fe45ac49e1ae97524 (patch) | |
tree | 6f1a450a6d1c3c180a3d49cf14d90253ce1a5613 /interface.c | |
parent | 84b04742fed90f8647c0c78396bd4b690cab5a33 (diff) |
use list_add_tail instead of list_add
Diffstat (limited to 'interface.c')
-rw-r--r-- | interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/interface.c b/interface.c index c437ef3..20956be 100644 --- a/interface.c +++ b/interface.c @@ -216,7 +216,7 @@ interface_alloc(const char *name, struct uci_section *s, struct blob_attr *attr) iface->main_dev.cb = interface_cb; iface->l3_iface = &iface->main_dev; strncpy(iface->name, name, sizeof(iface->name) - 1); - list_add(&iface->list, &interfaces); + list_add_tail(&iface->list, &interfaces); INIT_LIST_HEAD(&iface->errors); INIT_LIST_HEAD(&iface->address); INIT_LIST_HEAD(&iface->routes); |