From 7af59c9fee81b7e22445c0c96cbe4d2d3d834ac0 Mon Sep 17 00:00:00 2001 From: User Decke Date: Mon, 6 May 2013 13:05:58 +0200 Subject: [PATCH] Fix sendfile() call on FreeBSD/i386 src/webui/webui.c:885: warning: passing argument 6 of 'sendfile' from incompatible pointer type --- src/webui/webui.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webui/webui.c b/src/webui/webui.c index ee5881dc..1996de6f 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -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;