Remove warnings and make wc WARNS=6 clean.

Add FreeBSD Id to Makefile.

Approved by:	ssouhlal
This commit is contained in:
Josef El-Rayes 2004-12-27 22:27:56 +00:00
parent ece5e04f54
commit 806abfccac
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139364
2 changed files with 4 additions and 6 deletions

View File

@ -1,5 +1,6 @@
# @(#)Makefile 8.1 (Berkeley) 6/6/93
# $FreeBSD$
PROG= wc
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -69,9 +69,7 @@ static int cnt(const char *);
static void usage(void);
int
main(argc, argv)
int argc;
char *argv[];
main(int argc, char *argv[])
{
int ch, errors, total;
@ -133,8 +131,7 @@ main(argc, argv)
}
static int
cnt(file)
const char *file;
cnt(const char *file)
{
struct stat sb;
uintmax_t linect, wordct, charct;