mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-06 18:29:47 +00:00
Remove warnings and make wc WARNS=6 clean.
Add FreeBSD Id to Makefile. Approved by: ssouhlal
This commit is contained in:
parent
ece5e04f54
commit
806abfccac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=139364
@ -1,5 +1,6 @@
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
# $FreeBSD$
|
||||
|
||||
PROG= wc
|
||||
|
||||
WARNS?= 6
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user