diff options
Diffstat (limited to 'networking/ifupdown.c')
-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 68fdd37d4..c73529463 100644 --- a/networking/ifupdown.c +++ b/networking/ifupdown.c | |||
@@ -67,29 +67,6 @@ struct interface_defn_t; | |||
67 | typedef int (execfn)(char *command); | 67 | typedef int (execfn)(char *command); |
68 | typedef int (command_set)(struct interface_defn_t *ifd, execfn *e); | 68 | typedef int (command_set)(struct interface_defn_t *ifd, execfn *e); |
69 | 69 | ||
70 | extern 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 | |||
93 | struct method_t | 70 | struct method_t |
94 | { | 71 | { |
95 | char *name; | 72 | char *name; |