diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-01-21 21:50:17 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-01-21 21:50:17 +0300 |
commit | 44eec4065139c5558ba8c860a4a590649bfda21a (patch) | |
tree | 134cbdfbad6617a6e3844ffff2741a0c89d28472 | |
parent | 313e750c65cecfce85c1eed4f73c71196fecbac8 (diff) | |
download | libmicrohttpd-44eec4065139c5558ba8c860a4a590649bfda21a.tar.gz libmicrohttpd-44eec4065139c5558ba8c860a4a590649bfda21a.zip |
send_param_adapter(): improved var name, used correct var type.
-rw-r--r-- | src/microhttpd/daemon.c | 6 |
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 */ |