mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 11:53:00 -04:00
Fix type on freebsd sendfile. Patch from navin seshadri. Fixes bug 2811991
svn:r1330
This commit is contained in:
parent
f901f9867c
commit
5aefb8a6d6
2
buffer.c
2
buffer.c
@ -1763,7 +1763,7 @@ evbuffer_write_sendfile(struct evbuffer *buffer, evutil_socket_t fd,
|
||||
|
||||
return (len);
|
||||
#elif defined(SENDFILE_IS_FREEBSD)
|
||||
res = sendfile(info->fd, fd, chain->misalign, len, NULL, &len, 0);
|
||||
res = sendfile(info->fd, fd, chain->misalign, chain->off, NULL, &len, 0);
|
||||
if (res == -1 && !EVUTIL_ERR_RW_RETRIABLE(errno))
|
||||
return (-1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user