summaryrefslogtreecommitdiff
path: root/usr.bin/tail
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-09-29 12:31:29 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-09-29 12:31:29 +0000
commit4297cd8c6b7a9553c15e0737cd65cda6a723d3a9 (patch)
tree6dcc88c0b951924d0b6e14a233a2c121d93e74df /usr.bin/tail
parent669875d9a07fda4eb1102bf04439f3eaaf09a882 (diff)
unneeded includes and whitespace police; from Igor Zinovik
Diffstat (limited to 'usr.bin/tail')
-rw-r--r--usr.bin/tail/forward.c9
-rw-r--r--usr.bin/tail/misc.c12
-rw-r--r--usr.bin/tail/read.c6
-rw-r--r--usr.bin/tail/reverse.c9
4 files changed, 10 insertions, 26 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index 0e75ca57715..16044869097 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: forward.c,v 1.21 2006/03/24 17:10:02 kjell Exp $ */
+/* $OpenBSD: forward.c,v 1.22 2007/09/29 12:31:28 otto Exp $ */
/* $NetBSD: forward.c,v 1.7 1996/02/13 16:49:10 ghudson Exp $ */
/*-
@@ -37,20 +37,15 @@
#if 0
static char sccsid[] = "@(#)forward.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: forward.c,v 1.21 2006/03/24 17:10:02 kjell Exp $";
+static char rcsid[] = "$OpenBSD: forward.c,v 1.22 2007/09/29 12:31:28 otto Exp $";
#endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/mman.h>
#include <sys/event.h>
#include <err.h>
-#include <errno.h>
-#include <fcntl.h>
-#include <limits.h>
#include <stdio.h>
-#include <stdlib.h>
#include <string.h>
#include <unistd.h>
diff --git a/usr.bin/tail/misc.c b/usr.bin/tail/misc.c
index fd9849a5e03..b275746dc02 100644
--- a/usr.bin/tail/misc.c
+++ b/usr.bin/tail/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.6 2003/06/10 22:20:52 deraadt Exp $ */
+/* $OpenBSD: misc.c,v 1.7 2007/09/29 12:31:28 otto Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -36,24 +36,21 @@
#if 0
static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: misc.c,v 1.6 2003/06/10 22:20:52 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: misc.c,v 1.7 2007/09/29 12:31:28 otto Exp $";
#endif
#endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h>
+
#include <err.h>
-#include <errno.h>
-#include <unistd.h>
#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
+
#include "extern.h"
void
ierr(void)
{
-
warn("%s", fname);
rval = 1;
}
@@ -61,6 +58,5 @@ ierr(void)
void
oerr(void)
{
-
err(1, "stdout");
}
diff --git a/usr.bin/tail/read.c b/usr.bin/tail/read.c
index 7f3b4567353..2ad182787ad 100644
--- a/usr.bin/tail/read.c
+++ b/usr.bin/tail/read.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: read.c,v 1.11 2007/09/16 18:07:40 otto Exp $ */
+/* $OpenBSD: read.c,v 1.12 2007/09/29 12:31:28 otto 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.11 2007/09/16 18:07:40 otto Exp $";
+static char rcsid[] = "$OpenBSD: read.c,v 1.12 2007/09/29 12:31:28 otto Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -45,8 +45,6 @@ static char rcsid[] = "$OpenBSD: read.c,v 1.11 2007/09/16 18:07:40 otto Exp $";
#include <sys/limits.h>
#include <err.h>
-#include <errno.h>
-#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
diff --git a/usr.bin/tail/reverse.c b/usr.bin/tail/reverse.c
index 959df807ba4..17cc88a9a11 100644
--- a/usr.bin/tail/reverse.c
+++ b/usr.bin/tail/reverse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: reverse.c,v 1.17 2006/03/24 17:10:02 kjell Exp $ */
+/* $OpenBSD: reverse.c,v 1.18 2007/09/29 12:31:28 otto Exp $ */
/* $NetBSD: reverse.c,v 1.6 1994/11/23 07:42:10 jtc Exp $ */
/*-
@@ -37,19 +37,14 @@
#if 0
static char sccsid[] = "@(#)reverse.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: reverse.c,v 1.17 2006/03/24 17:10:02 kjell Exp $";
+static char rcsid[] = "$OpenBSD: reverse.c,v 1.18 2007/09/29 12:31:28 otto Exp $";
#endif /* not lint */
-#include <sys/param.h>
#include <sys/stat.h>
-#include <sys/mman.h>
#include <err.h>
-#include <errno.h>
-#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
-#include <string.h>
#include <unistd.h>
#include "extern.h"