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
32598ce2f6
commit
336b304268
@ -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…
x
Reference in New Issue
Block a user