ed: Don't show size of files in no diagnosistic mode

-s flag disables such warnings.
This commit is contained in:
Roberto E. Vargas Caballero 2016-01-01 11:17:03 +01:00 committed by sin
parent b19d708923
commit c5e28b5fe9
1 changed files with 2 additions and 1 deletions

3
ed.c
View File

@ -623,7 +623,8 @@ doread(char *fname)
}
inject(s);
}
printf("%zu\n", cnt);
if (optdiag)
printf("%zu\n", cnt);
aux = fp;
fp = NULL;