diff options
author | Lukas Ertl <le@FreeBSD.org> | 2004-07-23 11:36:35 +0000 |
---|---|---|
committer | Lukas Ertl <le@FreeBSD.org> | 2004-07-23 11:36:35 +0000 |
commit | 3e7ee83cbd47bc7f6c51672ba1ec389be5559220 (patch) | |
tree | e36fdca213859a7e9b67cc4ab6c00ec1e9819065 /games | |
parent | f0000ca01414f1478dbc01d43f4b5533952c516b (diff) | |
download | src-3e7ee83cbd47bc7f6c51672ba1ec389be5559220.tar.gz src-3e7ee83cbd47bc7f6c51672ba1ec389be5559220.zip |
Make this WARNS=3 clean.
PR: bin/38931
Submitted by: Giorgos Keramidas <keramida@freebsd.org>
Notes
Notes:
svn path=/head/; revision=132578
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 2b39220bfcd8..18dce099c700 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 acc772018268..bd8ee44f53de 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; |