Skip to content

Commit

Permalink
use ssize_t for return value
Browse files Browse the repository at this point in the history
Co-authored-by: Etienne Millon <etienne.millon@gmail.com>
Signed-off-by: Haoxiang Fei <tonyfettes@tonyfettes.com>
  • Loading branch information
tonyfettes and emillon committed Apr 2, 2024
1 parent 0951c52 commit 40a5749
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
Expand Up @@ -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) {
Expand Down

0 comments on commit 40a5749

Please sign in to comment.