Fixup to make warnings from the last patch go away.
This commit is contained in:
parent
08abe64d91
commit
12c2429a42
@ -1356,15 +1356,15 @@ extern int ifupdown_main(int argc, char **argv)
|
|||||||
} else {
|
} else {
|
||||||
/* Remove an interface from the linked list */
|
/* Remove an interface from the linked list */
|
||||||
if (iface_state) {
|
if (iface_state) {
|
||||||
const llist_t *link = iface_state->link;
|
llist_t *l = iface_state->link;
|
||||||
free(iface_state->data);
|
free(iface_state->data);
|
||||||
iface_state->data = NULL;
|
iface_state->data = NULL;
|
||||||
iface_state->link = NULL;
|
iface_state->link = NULL;
|
||||||
if (link) {
|
if (l) {
|
||||||
iface_state->data = link->data;
|
iface_state->data = l->data;
|
||||||
iface_state->link = link->link;
|
iface_state->link = l->link;
|
||||||
}
|
}
|
||||||
free(link);
|
free(l);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user