int main(int argc, char **argv)
{
- bbox_prepare_main();
+ bbox_prepare_main(argv);
#if !BB_MMU
/* NOMMU re-exec trick sets high-order bit in first byte of name */
/* Defined in appletlib.c */
extern const struct bb_applet applets[];
extern const unsigned short NUM_APPLETS;
-void bbox_prepare_main(void);
+void bbox_prepare_main(char **argv);
#endif /* _BB_INTERNAL_H_ */
| grep -v "^#" \
| grep -v "^$" \
> applet.lst
- while read name main cname; do
-
- test x"$cname" = "x[" && cname=test
- test x"$cname" = "x[[" && cname=test
+ while read name main junk; do
echo "\
-void bbox_prepare_main(void);
+void bbox_prepare_main(char **argv);
int $main(int argc, char **argv);
const char *applet_name = \"$name\";
int main(int argc, char **argv)
{
- bbox_prepare_main();
+ bbox_prepare_main(argv);
return $main(argc, argv);
}
" >"$sharedlib_dir/applet.c"