diff options
-rw-r--r-- | networking/ifupdown.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 179186199..2c6db926f 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 | |||
850 | char *iface_name; | 850 | char *iface_name; |
851 | char *address_family_name; | 851 | char *address_family_name; |
852 | char *method_name; | 852 | char *method_name; |
853 | llist_t *iface_list; | ||
854 | 853 | ||
855 | currif = xzalloc(sizeof(*currif)); | 854 | currif = xzalloc(sizeof(*currif)); |
856 | iface_name = next_word(&rest_of_line); | 855 | iface_name = next_word(&rest_of_line); |
@@ -888,6 +887,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename, struct in | |||
888 | // | 887 | // |
889 | // This adds *two* addresses to eth0 (probably requires use of "ip", not "ifconfig" | 888 | // This adds *two* addresses to eth0 (probably requires use of "ip", not "ifconfig" |
890 | // | 889 | // |
890 | llist_t *iface_list; | ||
891 | for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) { | 891 | for (iface_list = defn->ifaces; iface_list; iface_list = iface_list->link) { |
892 | struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data; | 892 | struct interface_defn_t *tmp = (struct interface_defn_t *) iface_list->data; |
893 | if ((strcmp(tmp->iface, currif->iface) == 0) | 893 | if ((strcmp(tmp->iface, currif->iface) == 0) |