mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 12:56:51 +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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user