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 /modutils/modutils.c | |
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 'modutils/modutils.c')
-rw-r--r-- | modutils/modutils.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/modutils/modutils.c b/modutils/modutils.c index 44dae7bc5..0f6cb0f2d 100644 --- a/modutils/modutils.c +++ b/modutils/modutils.c | |||
@@ -16,19 +16,6 @@ extern int delete_module(const char *module, unsigned int flags); | |||
16 | # define delete_module(mod, flags) syscall(__NR_delete_module, mod, flags) | 16 | # define delete_module(mod, flags) syscall(__NR_delete_module, mod, flags) |
17 | #endif | 17 | #endif |
18 | 18 | ||
19 | /* | ||
20 | a libbb candidate from ice age! | ||
21 | */ | ||
22 | llist_t FAST_FUNC *llist_find(llist_t *first, const char *str) | ||
23 | { | ||
24 | while (first != NULL) { | ||
25 | if (strcmp(first->data, str) == 0) | ||
26 | return first; | ||
27 | first = first->link; | ||
28 | } | ||
29 | return NULL; | ||
30 | } | ||
31 | |||
32 | void FAST_FUNC replace(char *s, char what, char with) | 19 | void FAST_FUNC replace(char *s, char what, char with) |
33 | { | 20 | { |
34 | while (*s) { | 21 | while (*s) { |