tail: fix "tail -c 20 /dev/huge_disk" (was taking ages)

tail: a few variables renamed
wc: tiny optimization.
This commit is contained in:
Denis Vlasenko
2008-02-19 00:38:10 +00:00
parent 5233cd3800
commit e8419c90f1
2 changed files with 43 additions and 38 deletions

View File

@@ -73,7 +73,7 @@ int wc_main(int argc, char **argv)
{
FILE *fp;
const char *s, *arg;
const char *start_fmt = "%9"COUNT_FMT;
const char *start_fmt = " %9"COUNT_FMT + 1;
const char *fname_fmt = " %s\n";
COUNT_T *pcounts;
COUNT_T counts[4];