mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(edit_insert_stream): refactoring.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
7031508550
commit
41ed8c13ee
@ -274,13 +274,11 @@ static off_t
|
||||
edit_insert_stream (WEdit * edit, FILE * f)
|
||||
{
|
||||
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);
|
||||
i++;
|
||||
}
|
||||
|
||||
return i;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user