From 15cb4a42724e480734157a55921ba435ed1413fc Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Thu, 11 Oct 2007 10:06:26 +0000 Subject: fix a problem with two different applet_name's --- scripts/trylink | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'scripts/trylink') diff --git a/scripts/trylink b/scripts/trylink index 25629aa1a..7fe262baa 100755 --- a/scripts/trylink +++ b/scripts/trylink @@ -220,14 +220,12 @@ if test "$CONFIG_FEATURE_INDIVIDUAL" = y; then while read name main junk; do echo "\ -void lbb_prepare(char **argv); +void lbb_prepare(const char *applet, char **argv); int $main(int argc, char **argv); -const char *applet_name = \"$name\"; - int main(int argc, char **argv) { - lbb_prepare(argv); + lbb_prepare(\"$name\", argv); return $main(argc, argv); } " >"$sharedlib_dir/applet.c" -- cgit v1.2.3