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:
parent
c1193e81f0
commit
7af59c9fee
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue