From 44eec4065139c5558ba8c860a4a590649bfda21a Mon Sep 17 00:00:00 2001 From: "Evgeny Grin (Karlson2k)" Date: Sat, 21 Jan 2017 21:50:17 +0300 Subject: send_param_adapter(): improved var name, used correct var type. --- src/microhttpd/daemon.c | 6 +++--- 1 file 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, (MHD_resp_sender_sendfile == connection->resp_sender) ) { /* can use sendfile */ - MHD_socket fd = connection->response->fd; + int file_fd = connection->response->fd; uint64_t left; uint64_t offsetu64; #ifndef HAVE_SENDFILE64 @@ -1887,14 +1887,14 @@ send_param_adapter (struct MHD_Connection *connection, offset = (off_t) offsetu64; if ( (offsetu64 <= (uint64_t) OFF_T_MAX) && (0 < (ret = sendfile (connection->socket_fd, - fd, + file_fd, &offset, left))) ) #else /* HAVE_SENDFILE64 */ offset = (off64_t) offsetu64; if ( (offsetu64 <= (uint64_t) OFF64_T_MAX) && (0 < (ret = sendfile64 (connection->socket_fd, - fd, + file_fd, &offset, left))) ) #endif /* HAVE_SENDFILE64 */ -- cgit v1.2.3