summaryrefslogtreecommitdiff
path: root/usr.bin/head
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-10 22:20:55 +0000
commitb8aaa8bec8414f8e55cf9b61fe0873d242c773b8 (patch)
tree5e43016c4fae834239fd38972fd58355ed6b54b5 /usr.bin/head
parentf18f6607440f6d2da08fac3522d88a65c77a5f3e (diff)
mostly ansi cleanup; pval ok
Diffstat (limited to 'usr.bin/head')
-rw-r--r--usr.bin/head/head.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/head/head.c b/usr.bin/head/head.c
index cee22150bc9..d1eaffc040e 100644
--- a/usr.bin/head/head.c
+++ b/usr.bin/head/head.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: head.c,v 1.10 2003/06/03 02:56:09 millert Exp $ */
+/* $OpenBSD: head.c,v 1.11 2003/06/10 22:20:47 deraadt Exp $ */
/*
* Copyright (c) 1980, 1987 Regents of the University of California.
@@ -37,7 +37,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)head.c 5.5 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: head.c,v 1.10 2003/06/03 02:56:09 millert Exp $";
+static char rcsid[] = "$OpenBSD: head.c,v 1.11 2003/06/10 22:20:47 deraadt Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -57,9 +57,7 @@ static void usage(void);
*/
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
long cnt;
int ch, firsttime;
@@ -118,7 +116,7 @@ main(argc, argv)
static void
-usage ()
+usage(void)
{
fputs("usage: head [-n line_count] [file ...]\n", stderr);
exit(1);