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
parent c1193e81f0
commit 7af59c9fee

View file

@ -798,7 +798,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;