summaryrefslogtreecommitdiffstats
path: root/usr.bin/head
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-04-28 13:50:54 +0000
committermarkm <markm@FreeBSD.org>2002-04-28 13:50:54 +0000
commitdeaa4a187be980595f014ea28852162d7dd0e9fa (patch)
tree11ab32f9823bf1ab3e0879e5c716327d425ee1a5 /usr.bin/head
parentafdd6c61a4d4f6da6db98d1d8cf7b44fd2cacf51 (diff)
downloadFreeBSD-src-deaa4a187be980595f014ea28852162d7dd0e9fa.zip
FreeBSD-src-deaa4a187be980595f014ea28852162d7dd0e9fa.tar.gz
Fix VCS tags; ANSIfy functions
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 1daf115..9f0e77a 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");
OpenPOWER on IntegriCloud