diff options
author | le <le@FreeBSD.org> | 2004-07-23 11:36:35 +0000 |
---|---|---|
committer | le <le@FreeBSD.org> | 2004-07-23 11:36:35 +0000 |
commit | 3654de90d4d4834214e36df0573e0872900e114c (patch) | |
tree | e36fdca213859a7e9b67cc4ab6c00ec1e9819065 /games | |
parent | f83c5fa3cae7a33cee64b24a2a840959aed5c1ee (diff) | |
download | FreeBSD-src-3654de90d4d4834214e36df0573e0872900e114c.zip FreeBSD-src-3654de90d4d4834214e36df0573e0872900e114c.tar.gz |
Make this WARNS=3 clean.
PR: bin/38931
Submitted by: Giorgos Keramidas <keramida@freebsd.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/strfile/Makefile | 2 | ||||
-rw-r--r-- | games/fortune/strfile/strfile.c | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/games/fortune/strfile/Makefile b/games/fortune/strfile/Makefile index 2b39220..18dce09 100644 --- a/games/fortune/strfile/Makefile +++ b/games/fortune/strfile/Makefile @@ -4,6 +4,6 @@ PROG= strfile MAN= strfile.8 MLINKS= strfile.8 unstr.8 -WARNS?= 2 +WARNS?= 3 .include <bsd.prog.mk> diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index acc7720..bd8ee44 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -146,13 +146,12 @@ static void usage(void); * CHUNKSIZE blocks; if the latter, we just write each pointer, * and then seek back to the beginning to write in the table. */ -int main(ac, av) -int ac; -char **av; +int main(int ac, char *av[]) { char *sp, dc; FILE *inf, *outf; - long last_off, length, pos, *p; + long last_off, pos, *p; + unsigned long length; int first, cnt; char *nsp; STR *fp; |