From 06af2165288cd6516b89001ec9e24992619230e0 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 3 Feb 2007 17:28:39 +0000 Subject: suppress warnings about easch _main() having no preceding prototype --- editors/awk.c | 1 + editors/ed.c | 1 + editors/patch.c | 1 + editors/sed.c | 1 + editors/vi.c | 1 + 5 files changed, 5 insertions(+) (limited to 'editors') 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; -- cgit v1.1