diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-13 20:52:00 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2009-04-13 20:52:00 +0000 |
commit | 0b791d9a976e46b2705ae73046706ab9ac3768be (patch) | |
tree | c97a6ccdf5b8eb54ecac8991024fa8c80d01ff6e /networking | |
parent | 4144504912954b0d31c5bbe5f13df5a4ec4f122a (diff) | |
download | busybox-w32-0b791d9a976e46b2705ae73046706ab9ac3768be.tar.gz busybox-w32-0b791d9a976e46b2705ae73046706ab9ac3768be.tar.bz2 busybox-w32-0b791d9a976e46b2705ae73046706ab9ac3768be.zip |
move llist_find_str from modutils to libbb
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifupdown.c | 16 |
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 | |||
692 | return NULL; | 692 | return NULL; |
693 | } | 693 | } |
694 | 694 | ||
695 | static const llist_t *find_list_string(const llist_t *list, const char *string) | ||
696 | { | ||
697 | if (string == NULL) | ||
698 | return NULL; | ||
699 | |||
700 | while (list) { | ||
701 | if (strcmp(list->data, string) == 0) { | ||
702 | return list; | ||
703 | } | ||
704 | list = list->link; | ||
705 | } | ||
706 | return NULL; | ||
707 | } | ||
708 | |||
709 | static struct interfaces_file_t *read_interfaces(const char *filename) | 695 | static struct interfaces_file_t *read_interfaces(const char *filename) |
710 | { | 696 | { |
711 | /* Let's try to be compatible. | 697 | /* Let's try to be compatible. |
@@ -836,7 +822,7 @@ static struct interfaces_file_t *read_interfaces(const char *filename) | |||
836 | while ((first_word = next_word(&rest_of_line)) != NULL) { | 822 | while ((first_word = next_word(&rest_of_line)) != NULL) { |
837 | 823 | ||
838 | /* Check the interface isnt already listed */ | 824 | /* Check the interface isnt already listed */ |
839 | if (find_list_string(defn->autointerfaces, first_word)) { | 825 | if (llist_find_str(defn->autointerfaces, first_word)) { |
840 | bb_perror_msg_and_die("interface declared auto twice \"%s\"", buf); | 826 | bb_perror_msg_and_die("interface declared auto twice \"%s\"", buf); |
841 | } | 827 | } |
842 | 828 | ||