summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-07-14 18:21:07 +0000
committeralfred <alfred@FreeBSD.org>2002-07-14 18:21:07 +0000
commitadf0fb9f4e0176992d643bfe8da94a2d54f48ec0 (patch)
tree3b5a1044d78030633b015bba265e8815eb0c3497 /usr.bin/tail
parent6241f405088eef3a65f8cf3a4711d3e780ff94db (diff)
downloadFreeBSD-src-adf0fb9f4e0176992d643bfe8da94a2d54f48ec0.zip
FreeBSD-src-adf0fb9f4e0176992d643bfe8da94a2d54f48ec0.tar.gz
WARNS=4, add
Diffstat (limited to 'usr.bin/tail')
-rw-r--r--usr.bin/tail/Makefile2
-rw-r--r--usr.bin/tail/tail.c9
2 files changed, 5 insertions, 6 deletions
diff --git a/usr.bin/tail/Makefile b/usr.bin/tail/Makefile
index de1c3c9..c816693 100644
--- a/usr.bin/tail/Makefile
+++ b/usr.bin/tail/Makefile
@@ -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>
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c
index 70afd4d..2a3ee13 100644
--- a/usr.bin/tail/tail.c
+++ b/usr.bin/tail/tail.c
@@ -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");
OpenPOWER on IntegriCloud