From d0dff6e50560a7b6656b62f3a338faa347717f6a Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Mon, 15 Jul 1996 21:27:49 +0000 Subject: [PATCH] Declare main as int, not void. --- lib-src/etags.c | 2 +- lib-src/fakemail.c | 8 +++++--- lib-src/profile.c | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/lib-src/etags.c b/lib-src/etags.c index c9b5ddeb4d3..97f860a96a4 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c @@ -693,7 +693,7 @@ char *massage_name (s) #endif /* VMS */ -void +int main (argc, argv) int argc; char *argv[]; diff --git a/lib-src/fakemail.c b/lib-src/fakemail.c index 93e14d7e961..400861d4fd7 100644 --- a/lib-src/fakemail.c +++ b/lib-src/fakemail.c @@ -24,15 +24,17 @@ Boston, MA 02111-1307, USA. */ #if defined (BSD) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) /* This program isnot used in BSD, so just avoid loader complaints. */ -void +int main () { + return 0; } #else /* not BSD 4.2 (or newer) */ #ifdef MSDOS -void +int main () { + return 0; } #else /* not MSDOS */ /* This conditional contains all the rest of the file. */ @@ -695,7 +697,7 @@ write_header (the_header) return; } -void +int main (argc, argv) int argc; char **argv; diff --git a/lib-src/profile.c b/lib-src/profile.c index 10148e04df8..b0c713e69dd 100644 --- a/lib-src/profile.c +++ b/lib-src/profile.c @@ -79,7 +79,7 @@ gettimeofday (tp, tzp) #endif -void +int main () { int c; -- 2.39.5