summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenis Vlasenko2007-02-03 17:28:39 +0000
committerDenis Vlasenko2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /editors
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
downloadbusybox-06af2165288cd6516b89001ec9e24992619230e0.zip
busybox-06af2165288cd6516b89001ec9e24992619230e0.tar.gz
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c1
-rw-r--r--editors/ed.c1
-rw-r--r--editors/patch.c1
-rw-r--r--editors/sed.c1
-rw-r--r--editors/vi.c1
5 files changed, 5 insertions, 0 deletions
diff --git a/editors/awk.c b/editors/awk.c
index ae7ca23..9af6ecc 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -2644,6 +2644,7 @@ static rstream *next_input_file(void)
return &rsm;
}
+int awk_main(int argc, char **argv);
int awk_main(int argc, char **argv)
{
unsigned opt;
diff --git a/editors/ed.c b/editors/ed.c
index 5a48fbe..42adca4 100644
--- a/editors/ed.c
+++ b/editors/ed.c
@@ -40,6 +40,7 @@ static LINE *findLine(int num);
static int findString(const LINE *lp, const char * str, int len, int offset);
+int ed_main(int argc, char **argv);
int ed_main(int argc, char **argv)
{
if (!initEdit())
diff --git a/editors/patch.c b/editors/patch.c
index f8d7605..2c90804 100644
--- a/editors/patch.c
+++ b/editors/patch.c
@@ -75,6 +75,7 @@ static int file_doesnt_exist(const char *filename)
return stat(filename, &statbuf);
}
+int patch_main(int argc, char **argv);
int patch_main(int argc, char **argv)
{
int patch_level = -1;
diff --git a/editors/sed.c b/editors/sed.c
index 1572c74..b8f00c0 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -1215,6 +1215,7 @@ static void add_files_link(llist_t *opt_f)
free(opt_f);
}
+int sed_main(int argc, char **argv);
int sed_main(int argc, char **argv)
{
enum {
diff --git a/editors/vi.c b/editors/vi.c
index 46181cf..45a8051 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -264,6 +264,7 @@ static void write1(const char *out)
fputs(out, stdout);
}
+int vi_main(int argc, char **argv);
int vi_main(int argc, char **argv)
{
int c;