diff options
author | peter <peter@FreeBSD.org> | 1999-09-15 01:58:44 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-09-15 01:58:44 +0000 |
commit | 9751ab22aebd4e0dc1a47417f01e8e6471427840 (patch) | |
tree | f600607dae931af96b85ffc6096825041bedd739 /games | |
parent | 86df52f412c220bacae074173eb61b229ecdbbf3 (diff) | |
download | FreeBSD-src-9751ab22aebd4e0dc1a47417f01e8e6471427840.zip FreeBSD-src-9751ab22aebd4e0dc1a47417f01e8e6471427840.tar.gz |
Fix warning: return type of `main' is not `int'
Diffstat (limited to 'games')
-rw-r--r-- | games/caesar/caesar.c | 8 | ||||
-rw-r--r-- | games/fortune/strfile/strfile.c | 7 | ||||
-rw-r--r-- | games/fortune/unstr/unstr.c | 7 |
3 files changed, 19 insertions, 3 deletions
diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c index b227b57..e2f1074 100644 --- a/games/caesar/caesar.c +++ b/games/caesar/caesar.c @@ -46,7 +46,12 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint +#if 0 static const char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93"; +#else +static const char rcsid[] = + "$FreeBSD$"; +#endif #endif /* not lint */ #include <errno.h> @@ -75,7 +80,8 @@ double stdf[26] = { void printit(); -void main(argc, argv) +int +main(argc, argv) int argc; char **argv; { diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index 9b67b6a..1a57d2b 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -41,7 +41,12 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint +#if 0 static const char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93"; +#else +static const char rcsid[] = + "$FreeBSD$"; +#endif #endif /* not lint */ # include <sys/param.h> @@ -134,7 +139,7 @@ int cmp_str(); * CHUNKSIZE blocks; if the latter, we just write each pointer, * and then seek back to the beginning to write in the table. */ -void main(ac, av) +int main(ac, av) int ac; char **av; { diff --git a/games/fortune/unstr/unstr.c b/games/fortune/unstr/unstr.c index 78a21fb..00b5c1e 100644 --- a/games/fortune/unstr/unstr.c +++ b/games/fortune/unstr/unstr.c @@ -41,7 +41,12 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint +#if 0 static const char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93"; +#else +static const char rcsid[] = + "$FreeBSD$"; +#endif #endif /* not lint */ /* @@ -72,7 +77,7 @@ FILE *Inf, *Dataf; void getargs(), order_unstr(); /* ARGSUSED */ -void main(ac, av) +int main(ac, av) int ac; char **av; { |