summaryrefslogtreecommitdiffhomepage
path: root/shell
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /shell
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
-rw-r--r--shell/bbsh.c1
-rw-r--r--shell/hush.c1
-rw-r--r--shell/lash.c1
-rw-r--r--shell/msh.c1
5 files changed, 6 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 0f9b3288b..bfaf04ffd 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -7900,8 +7900,8 @@ static void read_profile(const char *);
* is used to figure out how far we had gotten.
*/
-int
-ash_main(int argc, char **argv)
+int ash_main(int argc, char **argv);
+int ash_main(int argc, char **argv)
{
char *shinit;
volatile int state;
diff --git a/shell/bbsh.c b/shell/bbsh.c
index 7978fdc16..fe27f4418 100644
--- a/shell/bbsh.c
+++ b/shell/bbsh.c
@@ -198,6 +198,7 @@ static void handle(char *command)
}
}
+int bbsh_main(int argc, char *argv[]);
int bbsh_main(int argc, char *argv[])
{
char *command=NULL;
diff --git a/shell/hush.c b/shell/hush.c
index c3640ed3a..573724075 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -2686,6 +2686,7 @@ static void setup_job_control(void)
tcsetpgrp(shell_terminal, shell_pgrp);
}
+int hush_main(int argc, char **argv);
int hush_main(int argc, char **argv)
{
int opt;
diff --git a/shell/lash.c b/shell/lash.c
index 51ad3cc06..502e0d829 100644
--- a/shell/lash.c
+++ b/shell/lash.c
@@ -1502,6 +1502,7 @@ static inline void setup_job_control(void)
}
#endif
+int lash_main(int argc_l, char **argv_l);
int lash_main(int argc_l, char **argv_l)
{
unsigned opt;
diff --git a/shell/msh.c b/shell/msh.c
index 496435189..817b84093 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -5097,6 +5097,7 @@ static void freehere(int area)
* shell
*/
+int msh_main(int argc, char **argv);
int msh_main(int argc, char **argv)
{
int f;