From 433f792b53c96eb62f395b329e21ce0cb633ddc2 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sat, 28 Oct 2023 10:35:18 +0300 Subject: [PATCH] (edit_insert_file): change variable type from int to gboolean. Signed-off-by: Andrew Borodin --- src/editor/edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/edit.c b/src/editor/edit.c index 0517715f7..de75ac624 100644 --- a/src/editor/edit.c +++ b/src/editor/edit.c @@ -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); } -- 2.11.4.GIT