mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-29 02:22:43 +00:00
Fix a misleading comment. Rename a variable to make more sense.
Pointed out by by: bde
This commit is contained in:
parent
fc702c5bc8
commit
ee7b3b0639
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30292
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user