From 3654de90d4d4834214e36df0573e0872900e114c Mon Sep 17 00:00:00 2001 From: le Date: Fri, 23 Jul 2004 11:36:35 +0000 Subject: Make this WARNS=3 clean. PR: bin/38931 Submitted by: Giorgos Keramidas --- games/fortune/strfile/Makefile | 2 +- games/fortune/strfile/strfile.c | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'games') 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 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; -- cgit v1.1