diff options
author | Rob Landley | 2006-05-26 23:44:51 +0000 |
---|---|---|
committer | Rob Landley | 2006-05-26 23:44:51 +0000 |
commit | 8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (patch) | |
tree | b717c772c6fef53c34b723341a8c5b12ccb57902 /networking/ifupdown.c | |
parent | 5edc10275ec86f6ce6af97a8e2e5eeccb3a2e8cb (diff) | |
download | busybox-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.zip busybox-8bb50782a5f0dd955a6fe18d381eb9322d1447e7.tar.gz |
Change llist_add_* to take the address of the list rather than returning the new
head, and change all the callers.
Diffstat (limited to 'networking/ifupdown.c')
-rw-r--r-- | networking/ifupdown.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 32b92fb..038bb13 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -739,7 +739,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename) } } - defn->ifaces = llist_add_to_end(defn->ifaces, (char*)currif); + llist_add_to_end(&(defn->ifaces), (char*)currif); } debug_noise("iface %s %s %s\n", currif->iface, address_family_name, method_name); } @@ -753,7 +753,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename) } /* Add the interface to the list */ - defn->autointerfaces = llist_add_to_end(defn->autointerfaces, bb_xstrdup(firstword)); + llist_add_to_end(&(defn->autointerfaces), bb_xstrdup(firstword)); debug_noise("\nauto %s\n", firstword); } currently_processing = NONE; @@ -1202,14 +1202,14 @@ int ifupdown_main(int argc, char **argv) /* iface_down */ const llist_t *list = state_list; while (list) { - target_list = llist_add_to_end(target_list, bb_xstrdup(list->data)); + llist_add_to_end(&target_list, bb_xstrdup(list->data)); list = list->link; } target_list = defn->autointerfaces; #endif } } else { - target_list = llist_add_to_end(target_list, argv[optind]); + llist_add_to_end(&target_list, argv[optind]); } @@ -1311,7 +1311,7 @@ int ifupdown_main(int argc, char **argv) char *newiface = xmalloc(strlen(iface) + 1 + strlen(liface) + 1); sprintf(newiface, "%s=%s", iface, liface); if (iface_state == NULL) { - state_list = llist_add_to_end(state_list, newiface); + llist_add_to_end(&state_list, newiface); } else { free(iface_state->data); iface_state->data = newiface; |