(edit_insert_stream): refactoring.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2022-10-30 09:53:44 +03:00
parent 7031508550
commit 41ed8c13ee

View File

@ -274,13 +274,11 @@ static off_t
edit_insert_stream (WEdit * edit, FILE * f) edit_insert_stream (WEdit * edit, FILE * f)
{ {
int c; int c;
off_t i = 0; off_t i;
while ((c = fgetc (f)) >= 0) for (i = 0; (c = fgetc (f)) >= 0; i++)
{
edit_insert (edit, c); edit_insert (edit, c);
i++;
}
return i; return i;
} }