From ee7b3b06394ab2021d005f3fae993fae9f843430 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sat, 11 Oct 1997 07:32:43 +0000 Subject: [PATCH] Fix a misleading comment. Rename a variable to make more sense. Pointed out by by: bde --- usr.bin/tail/forward.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index d1c8722c9b20..ea14f80ae5c4 100644 --- a/usr.bin/tail/forward.c +++ b/usr.bin/tail/forward.c @@ -85,7 +85,7 @@ forward(fp, style, off, sbp) struct stat *sbp; { register int ch; - struct timeval second; + struct timeval interval; switch(style) { case FBYTES: @@ -177,10 +177,9 @@ forward(fp, style, off, sbp) if (!fflag) break; - /* Sleep(3) is eight system calls. Do it fast. */ - second.tv_sec = 0; - second.tv_usec = 250000; - if (select(0, NULL, NULL, NULL, &second) == -1) + interval.tv_sec = 0; + interval.tv_usec = 250000; + if (select(0, NULL, NULL, NULL, &interval) == -1) if (errno != EINTR) err(1, "select"); clearerr(fp);