summaryrefslogtreecommitdiff
path: root/usr.bin/head
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2002-04-28 13:50:54 +0000
committerMark Murray <markm@FreeBSD.org>2002-04-28 13:50:54 +0000
commit1abf87a8690ab3997f883e151853b3a3bb35b7cd (patch)
tree11ab32f9823bf1ab3e0879e5c716327d425ee1a5 /usr.bin/head
parent5a92bc60c930fd6220e37f5a1579922276cf4d97 (diff)
downloadsrc-test2-1abf87a8690ab3997f883e151853b3a3bb35b7cd.tar.gz
src-test2-1abf87a8690ab3997f883e151853b3a3bb35b7cd.zip
Notes
Diffstat (limited to 'usr.bin/head')
-rw-r--r--usr.bin/head/head.c22
1 files changed, 8 insertions, 14 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c
index 1daf11574999..9f0e77ab720e 100644
--- a/usr.bin/head/head.c
+++ b/usr.bin/head/head.c
@@ -41,10 +41,11 @@ static const char copyright[] =
#if 0
static char sccsid[] = "@(#)head.c 8.2 (Berkeley) 5/4/95";
#endif
-static const char rcsid[] =
- "$FreeBSD$";
#endif /* not lint */
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
#include <sys/types.h>
#include <ctype.h>
@@ -66,9 +67,7 @@ static void obsolete(char *[]);
static void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int ch;
FILE *fp;
@@ -126,9 +125,7 @@ main(argc, argv)
}
static void
-head(fp, cnt)
- FILE *fp;
- int cnt;
+head(FILE *fp, int cnt)
{
char *cp;
size_t error, readlen;
@@ -142,9 +139,7 @@ head(fp, cnt)
}
static void
-head_bytes(fp, cnt)
- FILE *fp;
- size_t cnt;
+head_bytes(FILE *fp, size_t cnt)
{
char buf[4096];
size_t readlen;
@@ -164,8 +159,7 @@ head_bytes(fp, cnt)
}
static void
-obsolete(argv)
- char *argv[];
+obsolete(char *argv[])
{
char *ap;
@@ -183,7 +177,7 @@ obsolete(argv)
}
static void
-usage()
+usage(void)
{
(void)fprintf(stderr, "usage: head [-n lines | -c bytes] [file ...]\n");