Fix sendfile() call on FreeBSD/i386

src/webui/webui.c:885: warning: passing argument 6 of 'sendfile' from incompatible pointer type
This commit is contained in:
User Decke 2013-05-06 13:05:58 +02:00 committed by Adam Sutton
parent f22d3e0fb2
commit d137cc0073

View file

@ -857,7 +857,11 @@ page_dvrfile(http_connection_t *hc, const char *remain, void *opaque)
char range_buf[255];
char disposition[256];
off_t content_len, file_start, file_end, chunk;
#if defined(PLATFORM_LINUX)
ssize_t r;
#elif defined(PLATFORM_FREEBSD)
off_t r;
#endif
if(remain == NULL)
return 404;