From deaa4a187be980595f014ea28852162d7dd0e9fa Mon Sep 17 00:00:00 2001 From: markm Date: Sun, 28 Apr 2002 13:50:54 +0000 Subject: Fix VCS tags; ANSIfy functions --- usr.bin/head/head.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) (limited to 'usr.bin/head') 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 +__FBSDID("$FreeBSD$"); + #include #include @@ -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"); -- cgit v1.1