summaryrefslogtreecommitdiff
path: root/usr.bin/tail
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /usr.bin/tail
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'usr.bin/tail')
-rw-r--r--usr.bin/tail/extern.h16
-rw-r--r--usr.bin/tail/forward.c6
-rw-r--r--usr.bin/tail/reverse.c8
-rw-r--r--usr.bin/tail/tail.c8
4 files changed, 19 insertions, 19 deletions
diff --git a/usr.bin/tail/extern.h b/usr.bin/tail/extern.h
index a35a4fb93af..bdd043380cd 100644
--- a/usr.bin/tail/extern.h
+++ b/usr.bin/tail/extern.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: extern.h,v 1.6 2000/11/21 22:01:47 art Exp $ */
+/* $OpenBSD: extern.h,v 1.7 2002/02/16 21:27:54 millert Exp $ */
/* $NetBSD: extern.h,v 1.3 1994/11/23 07:42:00 jtc Exp $ */
/*-
@@ -42,15 +42,15 @@
enum STYLE { NOTSET = 0, FBYTES, FLINES, RBYTES, RLINES, REVERSE };
-void forward __P((FILE *, enum STYLE, long, struct stat *));
-void reverse __P((FILE *, enum STYLE, long, struct stat *));
+void forward(FILE *, enum STYLE, long, struct stat *);
+void reverse(FILE *, enum STYLE, long, struct stat *);
-int bytes __P((FILE *, off_t));
-int lines __P((FILE *, off_t));
+int bytes(FILE *, off_t);
+int lines(FILE *, off_t);
-void ierr __P((void));
-void oerr __P((void));
+void ierr(void);
+void oerr(void);
extern int fflag, rflag, rval;
extern char *fname;
-extern int is_stdin; \ No newline at end of file
+extern int is_stdin;
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index f7d1d248bf7..3dfd18c0792 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: forward.c,v 1.13 2001/11/19 19:02:16 mpech Exp $ */
+/* $OpenBSD: forward.c,v 1.14 2002/02/16 21:27:54 millert Exp $ */
/* $NetBSD: forward.c,v 1.7 1996/02/13 16:49:10 ghudson Exp $ */
/*-
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)forward.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: forward.c,v 1.13 2001/11/19 19:02:16 mpech Exp $";
+static char rcsid[] = "$OpenBSD: forward.c,v 1.14 2002/02/16 21:27:54 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -60,7 +60,7 @@ static char rcsid[] = "$OpenBSD: forward.c,v 1.13 2001/11/19 19:02:16 mpech Exp
#include "extern.h"
-static int rlines __P((FILE *, long, struct stat *));
+static int rlines(FILE *, long, struct stat *);
/*
* forward -- display the file, from an offset, forward.
diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c
index 3a03bbc0073..20e908cf451 100644
--- a/usr.bin/tail/reverse.c
+++ b/usr.bin/tail/reverse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: reverse.c,v 1.11 2001/11/19 19:02:16 mpech Exp $ */
+/* $OpenBSD: reverse.c,v 1.12 2002/02/16 21:27:54 millert Exp $ */
/* $NetBSD: reverse.c,v 1.6 1994/11/23 07:42:10 jtc Exp $ */
/*-
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: reverse.c,v 1.11 2001/11/19 19:02:16 mpech Exp $";
+static char rcsid[] = "$OpenBSD: reverse.c,v 1.12 2002/02/16 21:27:54 millert Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -58,8 +58,8 @@ static char rcsid[] = "$OpenBSD: reverse.c,v 1.11 2001/11/19 19:02:16 mpech Exp
#include "extern.h"
-static void r_buf __P((FILE *));
-static int r_reg __P((FILE *, enum STYLE, long, struct stat *));
+static void r_buf(FILE *);
+static int r_reg(FILE *, enum STYLE, long, struct stat *);
/*
* reverse -- display input in reverse order by line.
diff --git a/usr.bin/tail/tail.c b/usr.bin/tail/tail.c
index dd26ca4d7e7..c483e823a29 100644
--- a/usr.bin/tail/tail.c
+++ b/usr.bin/tail/tail.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tail.c,v 1.7 2001/11/19 19:02:16 mpech Exp $ */
+/* $OpenBSD: tail.c,v 1.8 2002/02/16 21:27:54 millert Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -46,7 +46,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)tail.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: tail.c,v 1.7 2001/11/19 19:02:16 mpech Exp $";
+static char rcsid[] = "$OpenBSD: tail.c,v 1.8 2002/02/16 21:27:54 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -65,8 +65,8 @@ int fflag, rflag, rval;
char *fname;
int is_stdin;
-static void obsolete __P((char **));
-static void usage __P((void));
+static void obsolete(char **);
+static void usage(void);
int
main(argc, argv)