Don't reprint file names unnecessarily.
PR: 75028 Submitted by: mteterin at 250-217 dot customer dot cloud9 dot net MFC after: 7 days
This commit is contained in:
parent
41843e7135
commit
9e777bc6e2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140101
@ -246,13 +246,13 @@ rlines(fp, off, sbp)
|
||||
static void
|
||||
show(file_info_t *file)
|
||||
{
|
||||
int ch, first;
|
||||
int ch;
|
||||
static file_info_t *last;
|
||||
|
||||
first = 1;
|
||||
while ((ch = getc(file->fp)) != EOF) {
|
||||
if (first && no_files > 1) {
|
||||
if (last != file && no_files > 1) {
|
||||
(void)printf("\n==> %s <==\n", file->file_name);
|
||||
first = 0;
|
||||
last = file;
|
||||
}
|
||||
if (putchar(ch) == EOF)
|
||||
oerr();
|
||||
|
Loading…
Reference in New Issue
Block a user