Fix a misleading comment. Rename a variable to make more sense.

Pointed out by by:	 bde
This commit is contained in:
Poul-Henning Kamp 1997-10-11 07:32:43 +00:00
parent fc702c5bc8
commit ee7b3b0639
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30292

View File

@ -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);