updated: [master] [0cfccd5] filemanager: use correct type for results of `read` in `mmap` fallback

1 view
Skip to first unread message

Yury V. Zaytsev

unread,
Jul 28, 2024, 4:01:33 AM7/28/24
to mc-co...@googlegroups.com
The following commit has been merged in the master branch:
commit 0cfccd5882e7ecdea8765ed0fdf2cc82808edc46
Author: Yury V. Zaytsev <yu...@shurup.com>
Date: Sun Jul 28 09:55:54 2024 +0200

filemanager: use correct type for results of `read` in `mmap` fallback

Signed-off-by: Yury V. Zaytsev <yu...@shurup.com>

diff --git a/src/filemanager/cmd.c b/src/filemanager/cmd.c
index 70602db..b1e9a0d 100644
--- a/src/filemanager/cmd.c
+++ b/src/filemanager/cmd.c
@@ -210,7 +210,7 @@ compare_files (const vfs_path_t *vpath1, const vfs_path_t *vpath2, off_t size)
#else
/* Don't have mmap() :( Even more ugly :) */
char buf1[BUFSIZ], buf2[BUFSIZ];
- int n1, n2;
+ ssize_t n1, n2;

rotate_dash (TRUE);
do

--
Midnight Commander Development
Reply all
Reply to author
Forward
0 new messages