commit 44eec4065139c5558ba8c860a4a590649bfda21a
parent 313e750c65cecfce85c1eed4f73c71196fecbac8
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Sat, 21 Jan 2017 21:50:17 +0300
send_param_adapter(): improved var name, used correct var type.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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 */