projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
insmod: code shrink, stop exporting insmod_ng_main.
[oweals/busybox.git]
/
shell
/
bbsh.c
diff --git
a/shell/bbsh.c
b/shell/bbsh.c
index 8f0fb0511a8f39887d4c1e346827d89c0e469da1..02e60508fb2032fd4f382c168d65ea901d3d3605 100644
(file)
--- a/
shell/bbsh.c
+++ b/
shell/bbsh.c
@@
-36,7
+36,7
@@
echo `echo hello#comment " woot` and more
*/
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
// 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;
int bbsh_main(int argc, char **argv)
{
char *command=NULL;
FILE *f;
- getopt32(arg
c, arg
v, "c:", &command);
+ getopt32(argv, "c:", &command);
f = argv[optind] ? xfopen(argv[optind],"r") : NULL;
if (command) handle(command);
f = argv[optind] ? xfopen(argv[optind],"r") : NULL;
if (command) handle(command);