[git commit] hush: code shrink
Denys Vlasenko
vda.linux at googlemail.com
Mon Dec 14 02:52:54 UTC 2020
commit: https://git.busybox.net/busybox/commit/?id=a8e19608fc9d2f775a4f81eaf9c38a5844684237
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
run_applet_main - 20 +20
builtin_kill 296 288 -8
builtin_test 19 10 -9
builtin_printf 19 10 -9
builtin_echo 19 10 -9
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/4 up/down: 20/-35) Total: -15 bytes
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
shell/hush.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell/hush.c b/shell/hush.c
index ba9540c98..3ccc18146 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -10499,7 +10499,7 @@ static int FAST_FUNC builtin_true(char **argv UNUSED_PARAM)
}
#if ENABLE_HUSH_TEST || ENABLE_HUSH_ECHO || ENABLE_HUSH_PRINTF || ENABLE_HUSH_KILL
-static int run_applet_main(char **argv, int (*applet_main_func)(int argc, char **argv))
+static NOINLINE int run_applet_main(char **argv, int (*applet_main_func)(int argc, char **argv))
{
int argc = string_array_len(argv);
return applet_main_func(argc, argv);
More information about the busybox-cvs
mailing list