summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2020-12-14 03:52:54 +0100
committerDenys Vlasenko2020-12-14 03:52:54 +0100
commita8e19608fc9d2f775a4f81eaf9c38a5844684237 (patch)
tree8d2bca4694911e37dac361fea17f9ad452186769
parent84d5eddb25930ee8a5ff96536ca6f707d793eb24 (diff)
downloadbusybox-a8e19608fc9d2f775a4f81eaf9c38a5844684237.zip
busybox-a8e19608fc9d2f775a4f81eaf9c38a5844684237.tar.gz
hush: code shrink
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@googlemail.com>
-rw-r--r--shell/hush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/hush.c b/shell/hush.c
index ba9540c..3ccc181 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);