From: User Decke Date: Mon, 6 May 2013 11:05:58 +0000 (+0200) Subject: Fix sendfile() call on FreeBSD/i386 X-Git-Tag: v3.9~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7af59c9fee81b7e22445c0c96cbe4d2d3d834ac0;p=thirdparty%2Ftvheadend.git Fix sendfile() call on FreeBSD/i386 src/webui/webui.c:885: warning: passing argument 6 of 'sendfile' from incompatible pointer type --- diff --git a/src/webui/webui.c b/src/webui/webui.c index ee5881dce..1996de6fa 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;