diff options
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/modutils.c | 13 | ||||
-rw-r--r-- | modutils/modutils.h | 1 |
2 files changed, 0 insertions, 14 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) { |
diff --git a/modutils/modutils.h b/modutils/modutils.h index 086bb3977..5104f1b6e 100644 --- a/modutils/modutils.h +++ b/modutils/modutils.h | |||
@@ -18,7 +18,6 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN | |||
18 | #define MODULE_NAME_LEN 256 | 18 | #define MODULE_NAME_LEN 256 |
19 | 19 | ||
20 | const char *moderror(int err) FAST_FUNC; | 20 | const char *moderror(int err) FAST_FUNC; |
21 | llist_t *llist_find(llist_t *first, const char *str) FAST_FUNC; | ||
22 | void replace(char *s, char what, char with) FAST_FUNC; | 21 | void replace(char *s, char what, char with) FAST_FUNC; |
23 | char *replace_underscores(char *s) FAST_FUNC; | 22 | char *replace_underscores(char *s) FAST_FUNC; |
24 | int string_to_llist(char *string, llist_t **llist, const char *delim) FAST_FUNC; | 23 | int string_to_llist(char *string, llist_t **llist, const char *delim) FAST_FUNC; |