aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-09-29 12:55:10 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2005-09-29 12:55:10 +0000
commitbee9eb1a9d04503d58070bd1946cc2c0538fcf95 (patch)
tree013e17fde8c199768a4195d057371372a330e765 /networking
parent3e245c9e21f991004b93c0892abdb5f040d37eff (diff)
downloadbusybox-w32-bee9eb1a9d04503d58070bd1946cc2c0538fcf95.tar.gz
busybox-w32-bee9eb1a9d04503d58070bd1946cc2c0538fcf95.tar.bz2
busybox-w32-bee9eb1a9d04503d58070bd1946cc2c0538fcf95.zip
- 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.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index 68fdd37d4..c73529463 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -67,29 +67,6 @@ struct interface_defn_t;
67typedef int (execfn)(char *command); 67typedef int (execfn)(char *command);
68typedef int (command_set)(struct interface_defn_t *ifd, execfn *e); 68typedef int (command_set)(struct interface_defn_t *ifd, execfn *e);
69 69
70extern llist_t *llist_add_to_end(llist_t *list_head, char *data)
71{
72 llist_t *new_item, *tmp, *prev;
73
74 new_item = xmalloc(sizeof(llist_t));
75 new_item->data = data;
76 new_item->link = NULL;
77
78 prev = NULL;
79 tmp = list_head;
80 while(tmp) {
81 prev = tmp;
82 tmp = tmp->link;
83 }
84 if (prev) {
85 prev->link = new_item;
86 } else {
87 list_head = new_item;
88 }
89
90 return(list_head);
91}
92
93struct method_t 70struct method_t
94{ 71{
95 char *name; 72 char *name;