From 40a5749c8892f97def99f173df983e76dd16f049 Mon Sep 17 00:00:00 2001 From: Haoxiang Fei Date: Sat, 30 Mar 2024 13:06:13 +0800 Subject: [PATCH] use ssize_t for return value Co-authored-by: Etienne Millon Signed-off-by: Haoxiang Fei --- otherlibs/stdune/src/copyfile_stubs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otherlibs/stdune/src/copyfile_stubs.c b/otherlibs/stdune/src/copyfile_stubs.c index f914a9f7c93..4ab47f35c19 100644 --- a/otherlibs/stdune/src/copyfile_stubs.c +++ b/otherlibs/stdune/src/copyfile_stubs.c @@ -74,7 +74,7 @@ CAMLprim value stdune_copyfile(value v_from, value v_to) { } static int dune_sendfile(int in, int out, size_t length) { - int ret; + ssize_t ret; while (length > 0) { ret = sendfile(out, in, NULL, length); if (ret < 0) {