From 86d764422f7001cedf0e24839f9d742ece580c17 Mon Sep 17 00:00:00 2001 From: dwmalone Date: Mon, 10 Jan 2005 20:16:08 +0000 Subject: 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. --- usr.bin/tail/forward.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'usr.bin/tail') 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 */ -- cgit v1.1