insmod: code shrink, stop exporting insmod_ng_main.
[oweals/busybox.git] / shell / bbsh.c
index 8f0fb0511a8f39887d4c1e346827d89c0e469da1..02e60508fb2032fd4f382c168d65ea901d3d3605 100644 (file)
@@ -36,7 +36,7 @@
   echo `echo hello#comment " woot` and more
 */
 
-#include "busybox.h"
+#include "libbb.h"
 
 // A single executable, its arguments, and other information we know about it.
 #define BBSH_FLAG_EXIT    1
@@ -198,13 +198,13 @@ static void handle(char *command)
        }
 }
 
-int bbsh_main(int argc, char **argv);
+int bbsh_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
 int bbsh_main(int argc, char **argv)
 {
        char *command=NULL;
        FILE *f;
 
-       getopt32(argc, argv, "c:", &command);
+       getopt32(argv, "c:", &command);
 
        f = argv[optind] ? xfopen(argv[optind],"r") : NULL;
        if (command) handle(command);