]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
webui: Fixed sendfile() call on Darwin.
authormacrule <562520+macrule@users.noreply.github.com>
Wed, 29 Nov 2017 17:18:53 +0000 (18:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 29 Nov 2017 19:55:06 +0000 (20:55 +0100)
Order of call arguments was wrong.

src/webui/webui.c

index 2652e0f08e266dfe1c36c5469003f3af019a9cea..bd013ecb439096148f2f5735728062667737eb87 100644 (file)
@@ -1680,7 +1680,7 @@ http_serve_file(http_connection_t *hc, const char *fname,
       sendfile(fd, hc->hc_fd, 0, chunk, NULL, &r, 0);
 #elif defined(PLATFORM_DARWIN)
       r = chunk;
-      sendfile(fd, hc->hc_fd, 0, NULL, &r, 0);
+      sendfile(fd, hc->hc_fd, 0, &r, NULL, 0);
 #endif
       if(r < 0) {
         ret = -1;