diff options
| author | Karl Heuer | 1996-07-15 21:27:49 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-07-15 21:27:49 +0000 |
| commit | d0dff6e50560a7b6656b62f3a338faa347717f6a (patch) | |
| tree | 57972e80b0ef1e1da8d2bacb8d68bbd342183605 /lib-src | |
| parent | c275f129ae7fc59bf899d0f3ddca4b2a2e3c2dd3 (diff) | |
| download | emacs-d0dff6e50560a7b6656b62f3a338faa347717f6a.tar.gz emacs-d0dff6e50560a7b6656b62f3a338faa347717f6a.zip | |
Declare main as int, not void.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/etags.c | 2 | ||||
| -rw-r--r-- | lib-src/fakemail.c | 8 | ||||
| -rw-r--r-- | 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) | |||
| 693 | #endif /* VMS */ | 693 | #endif /* VMS */ |
| 694 | 694 | ||
| 695 | 695 | ||
| 696 | void | 696 | int |
| 697 | main (argc, argv) | 697 | main (argc, argv) |
| 698 | int argc; | 698 | int argc; |
| 699 | char *argv[]; | 699 | 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. */ | |||
| 24 | 24 | ||
| 25 | #if defined (BSD) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) | 25 | #if defined (BSD) && !defined (BSD4_1) && !defined (USE_FAKEMAIL) |
| 26 | /* This program isnot used in BSD, so just avoid loader complaints. */ | 26 | /* This program isnot used in BSD, so just avoid loader complaints. */ |
| 27 | void | 27 | int |
| 28 | main () | 28 | main () |
| 29 | { | 29 | { |
| 30 | return 0; | ||
| 30 | } | 31 | } |
| 31 | #else /* not BSD 4.2 (or newer) */ | 32 | #else /* not BSD 4.2 (or newer) */ |
| 32 | #ifdef MSDOS | 33 | #ifdef MSDOS |
| 33 | void | 34 | int |
| 34 | main () | 35 | main () |
| 35 | { | 36 | { |
| 37 | return 0; | ||
| 36 | } | 38 | } |
| 37 | #else /* not MSDOS */ | 39 | #else /* not MSDOS */ |
| 38 | /* This conditional contains all the rest of the file. */ | 40 | /* This conditional contains all the rest of the file. */ |
| @@ -695,7 +697,7 @@ write_header (the_header) | |||
| 695 | return; | 697 | return; |
| 696 | } | 698 | } |
| 697 | 699 | ||
| 698 | void | 700 | int |
| 699 | main (argc, argv) | 701 | main (argc, argv) |
| 700 | int argc; | 702 | int argc; |
| 701 | char **argv; | 703 | 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) | |||
| 79 | 79 | ||
| 80 | #endif | 80 | #endif |
| 81 | 81 | ||
| 82 | void | 82 | int |
| 83 | main () | 83 | main () |
| 84 | { | 84 | { |
| 85 | int c; | 85 | int c; |