libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit b98ad354ca1ec1d88e2cc1da5a67e7da11b9f6c4
parent 7d7d55d12d92face09336f44380a91477a322fa4
Author: ng0 <ng0@n0.is>
Date:   Fri,  2 Aug 2019 09:08:51 +0000

Rename senfile_adapter to MHD_send_sendfile_ and remove duplicate prototype.

Diffstat:
Msrc/microhttpd/connection.c | 2+-
Msrc/microhttpd/mhd_send.c | 3+--
Msrc/microhttpd/mhd_send.h | 5+----
3 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c @@ -3123,7 +3123,7 @@ MHD_connection_handle_write (struct MHD_Connection *connection) #if defined(_MHD_HAVE_SENDFILE) if (MHD_resp_sender_sendfile == connection->resp_sender) { - ret = sendfile_adapter (connection); + ret = MHD_send_sendfile_ (connection); } else #else /* ! _MHD_HAVE_SENDFILE */ diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c @@ -435,9 +435,8 @@ static int freebsd_sendfile_flags_thd_p_c_; * @param connection the MHD connection structure * @return actual number of bytes sent */ -// FIXME: rename... ssize_t -sendfile_adapter (struct MHD_Connection *connection) +MHD_send_sendfile_ (struct MHD_Connection *connection) { ssize_t ret; const int file_fd = connection->response->fd; diff --git a/src/microhttpd/mhd_send.h b/src/microhttpd/mhd_send.h @@ -89,12 +89,9 @@ MHD_send_on_connection2_ (struct MHD_Connection *connection, const char *buffer, size_t buffer_size); -ssize_t -MHD_sendfile_on_connection_ (struct MHD_Connection *connection); - #if defined(_MHD_HAVE_SENDFILE) ssize_t -sendfile_adapter (struct MHD_Connection *connection); +MHD_send_sendfile_ (struct MHD_Connection *connection); #endif #endif /* MHD_SEND_H */