← Commit list

35e063e1b

Denys Vlasenko
Denys Vlasenko
2016-03-03
SUCCESS Duration: 198s

Subject

ifupdowm: fix "warning: unused variable 'iface_list'"

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

networking/ifupdown.c+1 -1
@@ -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)