aboutsummaryrefslogtreecommitdiff
path: root/modutils/modutils.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2025-08-02 07:18:56 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2025-08-02 07:18:56 +0200
commit91d8b4eb5c770dfcc05f74dd0bd7b3fabc236530 (patch)
treea0a6d5c8e5b08e61b1241be8cbe19d27b249833f /modutils/modutils.c
parent2d7ff2c909c6dce95a8780d00e2089f0c507dd25 (diff)
downloadbusybox-w32-91d8b4eb5c770dfcc05f74dd0bd7b3fabc236530.tar.gz
busybox-w32-91d8b4eb5c770dfcc05f74dd0bd7b3fabc236530.tar.bz2
busybox-w32-91d8b4eb5c770dfcc05f74dd0bd7b3fabc236530.zip
ftpd: code shrink, move replace_char() to libbb
function old new delta modprobe_main 803 804 +1 escape_text 127 122 -5 replace 18 - -18 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 1/1 up/down: 1/-23) Total: -22 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'modutils/modutils.c')
-rw-r--r--modutils/modutils.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/modutils/modutils.c b/modutils/modutils.c
index cbff20961..862f71f57 100644
--- a/modutils/modutils.c
+++ b/modutils/modutils.c
@@ -69,15 +69,6 @@ void FAST_FUNC moddb_free(module_db *db)
69 } 69 }
70} 70}
71 71
72void FAST_FUNC replace(char *s, char what, char with)
73{
74 while (*s) {
75 if (what == *s)
76 *s = with;
77 ++s;
78 }
79}
80
81int FAST_FUNC string_to_llist(char *string, llist_t **llist, const char *delim) 72int FAST_FUNC string_to_llist(char *string, llist_t **llist, const char *delim)
82{ 73{
83 char *tok; 74 char *tok;