aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2009-04-13 20:52:00 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2009-04-13 20:52:00 +0000
commit0b791d9a976e46b2705ae73046706ab9ac3768be (patch)
treec97a6ccdf5b8eb54ecac8991024fa8c80d01ff6e /networking
parent4144504912954b0d31c5bbe5f13df5a4ec4f122a (diff)
downloadbusybox-0b791d9a976e46b2705ae73046706ab9ac3768be.tar.gz
move llist_find_str from modutils to libbb
Diffstat (limited to 'networking')
-rw-r--r--networking/ifupdown.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/networking/ifupdown.c b/networking/ifupdown.c
index c9371cce8..dc7ed490b 100644
--- a/networking/ifupdown.c
+++ b/networking/ifupdown.c
@@ -692,20 +692,6 @@ static const struct method_t *get_method(const struct address_family_t *af, char
return NULL;
}
-static const llist_t *find_list_string(const llist_t *list, const char *string)
-{
- if (string == NULL)
- return NULL;
-
- while (list) {
- if (strcmp(list->data, string) == 0) {
- return list;
- }
- list = list->link;
- }
- return NULL;
-}
-
static struct interfaces_file_t *read_interfaces(const char *filename)
{
/* Let's try to be compatible.
@@ -836,7 +822,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename)
while ((first_word = next_word(&rest_of_line)) != NULL) {
/* Check the interface isnt already listed */
- if (find_list_string(defn->autointerfaces, first_word)) {
+ if (llist_find_str(defn->autointerfaces, first_word)) {
bb_perror_msg_and_die("interface declared auto twice \"%s\"", buf);
}