]> 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>
Sun, 10 Dec 2017 15:14:14 +0000 (16:14 +0100)
Order of call arguments was wrong.

src/webui/webui.c

index ed74849bd09f8e0f3f5c26eeaa6a0a5f724fc7e1..816308643ecbc1cf74fa9ae02f8331bad173bea6 100644 (file)
@@ -1660,7 +1660,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;