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:
brian 2005-01-12 04:06:31 +00:00
parent 32598ce2f6
commit 336b304268

View File

@ -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();