mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-10 08:22:27 +01:00
WARNS=4, add
This commit is contained in:
parent
12c9f2fd76
commit
d183dcb670
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99983
@ -1,6 +1,8 @@
|
||||
# $FreeBSD$
|
||||
# @(#)Makefile 8.1 (Berkeley) 6/6/93
|
||||
|
||||
PROG= tail
|
||||
SRCS= forward.c misc.c read.c reverse.c tail.c
|
||||
WARNS?= 4
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -67,9 +67,7 @@ static void obsolete(char **);
|
||||
static void usage(void);
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
struct stat sb;
|
||||
FILE *fp;
|
||||
@ -222,8 +220,7 @@ main(argc, argv)
|
||||
* the option argument for a -b, -c or -n option gets converted.
|
||||
*/
|
||||
static void
|
||||
obsolete(argv)
|
||||
char *argv[];
|
||||
obsolete(char *argv[])
|
||||
{
|
||||
char *ap, *p, *t;
|
||||
size_t len;
|
||||
@ -306,7 +303,7 @@ obsolete(argv)
|
||||
}
|
||||
|
||||
static void
|
||||
usage()
|
||||
usage(void)
|
||||
{
|
||||
(void)fprintf(stderr,
|
||||
"usage: tail [-F | -f | -r] [-b # | -c # | -n #] [file ...]\n");
|
||||
|
Loading…
Reference in New Issue
Block a user