diff options
author | phk <phk@FreeBSD.org> | 1997-10-11 07:32:43 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-10-11 07:32:43 +0000 |
commit | 045b39ade89b4ce5c8bdff28c73fdbd06754a1b3 (patch) | |
tree | 9e9ee122cde7bce3bf097a96eba2caa7efb0511d /usr.bin/tail/forward.c | |
parent | 3dfcb8cd24781626368738344df78044ac4dbfed (diff) | |
download | FreeBSD-src-045b39ade89b4ce5c8bdff28c73fdbd06754a1b3.zip FreeBSD-src-045b39ade89b4ce5c8bdff28c73fdbd06754a1b3.tar.gz |
Fix a misleading comment. Rename a variable to make more sense.
Pointed out by by: bde
Diffstat (limited to 'usr.bin/tail/forward.c')
-rw-r--r-- | usr.bin/tail/forward.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index d1c8722..ea14f80 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); |