summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko2016-03-03 02:19:16 +0100
committerDenys Vlasenko2016-03-03 02:19:16 +0100
commit35e063e1b9a1d35d311859fe61a934304952d5b5 (patch)
tree29dc64a04ed39d401fdb87183035c157b81f49d8 /networking
parentabe8f7515aded80889d78c2c1c8947997918cf90 (diff)
downloadbusybox-35e063e1b9a1d35d311859fe61a934304952d5b5.zip
busybox-35e063e1b9a1d35d311859fe61a934304952d5b5.tar.gz
ifupdowm: fix "warning: unused variable 'iface_list'"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 1791861..2c6db92 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -850,7 +850,6 @@ static struct interfaces_file_t *read_interfaces(const char *filename, struct in
char *iface_name;
char *address_family_name;
char *method_name;
- llist_t *iface_list;
currif = xzalloc(sizeof(*currif));
iface_name = next_word(&rest_of_line);
@@ -888,6 +887,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename, struct in
//
// This adds *two* addresses to eth0 (probably requires use of "ip", not "ifconfig"
//
+ llist_t *iface_list;
for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) {
struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data;
if ((strcmp(tmp->iface, currif->iface) == 0)