summaryrefslogtreecommitdiffstats
path: root/usr.bin/tail/forward.c
diff options
context:
space:
mode:
authordwmalone <dwmalone@FreeBSD.org>2005-01-10 20:16:08 +0000
committerdwmalone <dwmalone@FreeBSD.org>2005-01-10 20:16:08 +0000
commit86d764422f7001cedf0e24839f9d742ece580c17 (patch)
tree43b39bd67e7891be33e62ea2d5acbd56aa889fb8 /usr.bin/tail/forward.c
parentcae75ee299d78f4a540d8d732f23f82b917d5c45 (diff)
downloadFreeBSD-src-86d764422f7001cedf0e24839f9d742ece580c17.zip
FreeBSD-src-86d764422f7001cedf0e24839f9d742ece580c17.tar.gz
Some variables became unused or global in the last change to this
file. Remove the now redundant declarations. Add declarations for the new show and set_events functions and make them static.
Diffstat (limited to 'usr.bin/tail/forward.c')
-rw-r--r--usr.bin/tail/forward.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index 29f486d..13f9d79 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -60,6 +60,8 @@ static const char sccsid[] = "@(#)forward.c 8.1 (Berkeley) 6/6/93";
#include "extern.h"
static void rlines(FILE *, off_t, struct stat *);
+static void show(file_info_t *);
+static void set_events(file_info_t *files);
/* defines for inner loop actions */
#define USE_SLEEP 0
@@ -95,11 +97,7 @@ int kq;
void
forward(FILE *fp, enum STYLE style, off_t off, struct stat *sbp)
{
- int ch, n, kq = -1;
- int action = USE_SLEEP;
- struct kevent ev[2];
- struct stat sb2;
- struct timespec ts;
+ int ch;
switch(style) {
case FBYTES:
@@ -245,7 +243,7 @@ rlines(fp, off, sbp)
*
*/
-void
+static void
show(file_info_t *file)
{
int ch, first;
@@ -267,7 +265,7 @@ show(file_info_t *file)
clearerr(file->fp);
}
-void
+static void
set_events(file_info_t *files)
{
int i, n = 0;
@@ -302,9 +300,7 @@ follow(file_info_t *files, enum STYLE style, off_t off)
{
int active, i, n = -1;
struct stat sb2;
- struct stat *sbp;
file_info_t *file;
- long spin=1;
struct timespec ts;
/* Position each of the files */
OpenPOWER on IntegriCloud