aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/microhttpd/connection.c2
-rw-r--r--src/microhttpd/mhd_send.c3
-rw-r--r--src/microhttpd/mhd_send.h5
3 files changed, 3 insertions, 7 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index cee38b8d..070fad51 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -3123,7 +3123,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection)
3123#if defined(_MHD_HAVE_SENDFILE) 3123#if defined(_MHD_HAVE_SENDFILE)
3124 if (MHD_resp_sender_sendfile == connection->resp_sender) 3124 if (MHD_resp_sender_sendfile == connection->resp_sender)
3125 { 3125 {
3126 ret = sendfile_adapter (connection); 3126 ret = MHD_send_sendfile_ (connection);
3127 } 3127 }
3128 else 3128 else
3129#else /* ! _MHD_HAVE_SENDFILE */ 3129#else /* ! _MHD_HAVE_SENDFILE */
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c
index 11ed6db7..0b1ae127 100644
--- a/src/microhttpd/mhd_send.c
+++ b/src/microhttpd/mhd_send.c
@@ -435,9 +435,8 @@ static int freebsd_sendfile_flags_thd_p_c_;
435 * @param connection the MHD connection structure 435 * @param connection the MHD connection structure
436 * @return actual number of bytes sent 436 * @return actual number of bytes sent
437 */ 437 */
438// FIXME: rename...
439ssize_t 438ssize_t
440sendfile_adapter (struct MHD_Connection *connection) 439MHD_send_sendfile_ (struct MHD_Connection *connection)
441{ 440{
442 ssize_t ret; 441 ssize_t ret;
443 const int file_fd = connection->response->fd; 442 const int file_fd = connection->response->fd;
diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h
index 5f0f8155..a766c8c0 100644
--- a/src/microhttpd/mhd_send.h
+++ b/src/microhttpd/mhd_send.h
@@ -89,12 +89,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection,
89 const char *buffer, 89 const char *buffer,
90 size_t buffer_size); 90 size_t buffer_size);
91 91
92ssize_t
93MHD_sendfile_on_connection_ (struct MHD_Connection *connection);
94
95#if defined(_MHD_HAVE_SENDFILE) 92#if defined(_MHD_HAVE_SENDFILE)
96ssize_t 93ssize_t
97sendfile_adapter (struct MHD_Connection *connection); 94MHD_send_sendfile_ (struct MHD_Connection *connection);
98#endif 95#endif
99 96
100#endif /* MHD_SEND_H */ 97#endif /* MHD_SEND_H */