diff options
author | Bernhard Reutner-Fischer | 2005-09-29 12:55:10 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer | 2005-09-29 12:55:10 +0000 |
commit | bee9eb1a9d04503d58070bd1946cc2c0538fcf95 (patch) | |
tree | 013e17fde8c199768a4195d057371372a330e765 /networking | |
parent | 3e245c9e21f991004b93c0892abdb5f040d37eff (diff) | |
download | busybox-bee9eb1a9d04503d58070bd1946cc2c0538fcf95.zip busybox-bee9eb1a9d04503d58070bd1946cc2c0538fcf95.tar.gz |
- rename llist_add_to.c to llist.c
- move llist_add_to_end() from ifupdown.c to libbb/llist.c
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifupdown.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c index 68fdd37..c735294 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c @@ -67,29 +67,6 @@ struct interface_defn_t; typedef int (execfn)(char *command); typedef int (command_set)(struct interface_defn_t *ifd, execfn *e); -extern llist_t *llist_add_to_end(llist_t *list_head, char *data) -{ - llist_t *new_item, *tmp, *prev; - - new_item = xmalloc(sizeof(llist_t)); - new_item->data = data; - new_item->link = NULL; - - prev = NULL; - tmp = list_head; - while(tmp) { - prev = tmp; - tmp = tmp->link; - } - if (prev) { - prev->link = new_item; - } else { - list_head = new_item; - } - - return(list_head); -} - struct method_t { char *name; |