(edit_insert_file): change variable type from int to gboolean.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2023-10-28 10:35:18 +03:00
parent 719422746a
commit 433f792b53
1 changed files with 2 additions and 2 deletions

View File

@ -2020,7 +2020,7 @@ edit_insert_file (WEdit * edit, const vfs_path_t * filename_vpath)
{
int file;
off_t blocklen;
int vertical_insertion = 0;
gboolean vertical_insertion = FALSE;
char *buf;
file = mc_open (filename_vpath, O_RDONLY | O_BINARY);
@ -2033,7 +2033,7 @@ edit_insert_file (WEdit * edit, const vfs_path_t * filename_vpath)
{
/* if contain signature VERTICAL_MAGIC then it vertical block */
if (memcmp (buf, VERTICAL_MAGIC, sizeof (VERTICAL_MAGIC)) == 0)
vertical_insertion = 1;
vertical_insertion = TRUE;
else
mc_lseek (file, 0, SEEK_SET);
}