summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKjell Wooding <kjell@cvs.openbsd.org>2006-03-24 17:10:03 +0000
committerKjell Wooding <kjell@cvs.openbsd.org>2006-03-24 17:10:03 +0000
commit87eb64be32639e3a93092d624104db590a533f91 (patch)
treee0e156bbfbb6639827c21bd2e07a89e8958dc6ae /usr.bin
parent4cb4263021226133c99e13f978204a7c7efa0930 (diff)
ANSIfy. Ok ray@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tail/forward.c10
-rw-r--r--usr.bin/tail/read.c12
-rw-r--r--usr.bin/tail/reverse.c13
3 files changed, 11 insertions, 24 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index 8e5521007f4..0e75ca57715 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: forward.c,v 1.20 2004/03/12 19:40:05 otto Exp $ */
+/* $OpenBSD: forward.c,v 1.21 2006/03/24 17:10:02 kjell Exp $ */
/* $NetBSD: forward.c,v 1.7 1996/02/13 16:49:10 ghudson Exp $ */
/*-
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)forward.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: forward.c,v 1.20 2004/03/12 19:40:05 otto Exp $";
+static char rcsid[] = "$OpenBSD: forward.c,v 1.21 2006/03/24 17:10:02 kjell Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -81,11 +81,7 @@ static int rlines(FILE *, off_t, struct stat *);
* NOREG cyclically read lines into a wrap-around array of buffers
*/
void
-forward(fp, style, off, sbp)
- FILE *fp;
- enum STYLE style;
- off_t off;
- struct stat *sbp;
+forward(FILE *fp, enum STYLE style, off_t off, struct stat *sbp)
{
int ch;
struct stat nsb;
diff --git a/usr.bin/tail/read.c b/usr.bin/tail/read.c
index 79198d23666..29bbcc754fa 100644
--- a/usr.bin/tail/read.c
+++ b/usr.bin/tail/read.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: read.c,v 1.8 2006/03/22 19:43:29 kjell Exp $ */
+/* $OpenBSD: read.c,v 1.9 2006/03/24 17:10:02 kjell Exp $ */
/* $NetBSD: read.c,v 1.4 1994/11/23 07:42:07 jtc Exp $ */
/*-
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)read.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: read.c,v 1.8 2006/03/22 19:43:29 kjell Exp $";
+static char rcsid[] = "$OpenBSD: read.c,v 1.9 2006/03/24 17:10:02 kjell Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -68,9 +68,7 @@ static char rcsid[] = "$OpenBSD: read.c,v 1.8 2006/03/22 19:43:29 kjell Exp $";
*
*/
int
-bytes(fp, off)
- FILE *fp;
- off_t off;
+bytes(FILE *fp, off_t off)
{
int ch;
size_t len, tlen;
@@ -143,9 +141,7 @@ bytes(fp, off)
*
*/
int
-lines(fp, off)
- FILE *fp;
- off_t off;
+lines(FILE *fp, off_t off)
{
struct {
size_t blen;
diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c
index 31a74a1c7e3..959df807ba4 100644
--- a/usr.bin/tail/reverse.c
+++ b/usr.bin/tail/reverse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: reverse.c,v 1.16 2006/03/22 19:43:29 kjell Exp $ */
+/* $OpenBSD: reverse.c,v 1.17 2006/03/24 17:10:02 kjell Exp $ */
/* $NetBSD: reverse.c,v 1.6 1994/11/23 07:42:10 jtc Exp $ */
/*-
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: reverse.c,v 1.16 2006/03/22 19:43:29 kjell Exp $";
+static char rcsid[] = "$OpenBSD: reverse.c,v 1.17 2006/03/24 17:10:02 kjell Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -88,11 +88,7 @@ static int r_reg(FILE *, enum STYLE, off_t, struct stat *);
* NOREG cyclically read input into a linked list of buffers
*/
void
-reverse(fp, style, off, sbp)
- FILE *fp;
- enum STYLE style;
- off_t off;
- struct stat *sbp;
+reverse(FILE *fp, enum STYLE style, off_t off, struct stat *sbp)
{
if (style != REVERSE && off == 0)
return;
@@ -181,8 +177,7 @@ typedef struct bf {
* user warned).
*/
static void
-r_buf(fp)
- FILE *fp;
+r_buf(FILE *fp)
{
BF *mark, *tr, *tl = NULL;
int ch;