Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use ssize_t for return value
Browse files Browse the repository at this point in the history
Co-authored-by: Etienne Millon <[email protected]>
Signed-off-by: Haoxiang Fei <[email protected]>
tonyfettes and emillon committed Apr 2, 2024

Partially verified

This commit is signed with the committer’s verified signature.
spydon’s contribution has been verified via GPG key.
We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
1 parent 424cc84 commit a7f3665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion otherlibs/stdune/src/copyfile_stubs.c
Original file line number Diff line number Diff line change
@@ -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) {

0 comments on commit a7f3665

Please sign in to comment.