summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-03-01 21:36:18 +0000
committerRob Landley <rob@landley.net>2006-03-01 21:36:18 +0000
commit12c2429a4242a157217c5bc9673a531fa1e1de61 (patch)
tree54bac9452060cd714d6019df8aa35b68151cc2fe
parent08abe64d9180d6d56c49900a2f89f3e9ff507201 (diff)
Fixup to make warnings from the last patch go away.
-rw-r--r--networking/ifupdown.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 156ceb7ab..9e6fc6291 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -1356,15 +1356,15 @@ extern int ifupdown_main(int argc, char **argv)
} else {
/* Remove an interface from the linked list */
if (iface_state) {
- const llist_t *link = iface_state->link;
+ llist_t *l = iface_state->link;
free(iface_state->data);
iface_state->data = NULL;
iface_state->link = NULL;
- if (link) {
- iface_state->data = link->data;
- iface_state->link = link->link;
+ if (l) {
+ iface_state->data = l->data;
+ iface_state->link = l->link;
}
- free(link);
+ free(l);
}
}
}