aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/microhttpd/daemon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
index 5ae6f138..82438bfa 100644
--- a/src/microhttpd/daemon.c
+++ b/src/microhttpd/daemon.c
@@ -1871,7 +1871,7 @@ send_param_adapter (struct MHD_Connection *connection,
1871 (MHD_resp_sender_sendfile == connection->resp_sender) ) 1871 (MHD_resp_sender_sendfile == connection->resp_sender) )
1872 { 1872 {
1873 /* can use sendfile */ 1873 /* can use sendfile */
1874 MHD_socket fd = connection->response->fd; 1874 int file_fd = connection->response->fd;
1875 uint64_t left; 1875 uint64_t left;
1876 uint64_t offsetu64; 1876 uint64_t offsetu64;
1877#ifndef HAVE_SENDFILE64 1877#ifndef HAVE_SENDFILE64
@@ -1887,14 +1887,14 @@ send_param_adapter (struct MHD_Connection *connection,
1887 offset = (off_t) offsetu64; 1887 offset = (off_t) offsetu64;
1888 if ( (offsetu64 <= (uint64_t) OFF_T_MAX) && 1888 if ( (offsetu64 <= (uint64_t) OFF_T_MAX) &&
1889 (0 < (ret = sendfile (connection->socket_fd, 1889 (0 < (ret = sendfile (connection->socket_fd,
1890 fd, 1890 file_fd,
1891 &offset, 1891 &offset,
1892 left))) ) 1892 left))) )
1893#else /* HAVE_SENDFILE64 */ 1893#else /* HAVE_SENDFILE64 */
1894 offset = (off64_t) offsetu64; 1894 offset = (off64_t) offsetu64;
1895 if ( (offsetu64 <= (uint64_t) OFF64_T_MAX) && 1895 if ( (offsetu64 <= (uint64_t) OFF64_T_MAX) &&
1896 (0 < (ret = sendfile64 (connection->socket_fd, 1896 (0 < (ret = sendfile64 (connection->socket_fd,
1897 fd, 1897 file_fd,
1898 &offset, 1898 &offset,
1899 left))) ) 1899 left))) )
1900#endif /* HAVE_SENDFILE64 */ 1900#endif /* HAVE_SENDFILE64 */