From 8547143da77b0bae392758040313762eb60d7e86 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 9 Apr 2020 00:29:16 +0200 Subject: adapt code to work with latest MHD API --- src/transport/plugin_transport_http_server.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/transport/plugin_transport_http_server.c') diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index 20bdb6273..eef83b29d 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c @@ -33,7 +33,7 @@ #include "plugin_transport_http_common.h" #include #include - +#include "gnunet_mhd_compat.h" #if BUILD_HTTPS #define PLUGIN_NAME "https_server" @@ -1741,9 +1741,9 @@ add_cors_headers (struct MHD_Response *response) * @param upload_data upload data * @param upload_data_size size of @a upload_data * @param httpSessionCache the session cache to remember the connection - * @return MHD_YES if connection is accepted, MHD_NO on reject + * @return #MHD_YES if connection is accepted, #MHD_NO on reject */ -static int +static MHD_RESULT server_access_cb (void *cls, struct MHD_Connection *mhd_connection, const char *url, @@ -1757,7 +1757,7 @@ server_access_cb (void *cls, struct ServerRequest *sc = *httpSessionCache; struct GNUNET_ATS_Session *s; struct MHD_Response *response; - int res = MHD_YES; + MHD_RESULT res = MHD_YES; LOG (GNUNET_ERROR_TYPE_DEBUG, _ ( @@ -2025,9 +2025,9 @@ server_connection_cb (void *cls, * @param cls plugin as closure * @param addr address of incoming connection * @param addr_len number of bytes in @a addr - * @return MHD_YES if connection is accepted, MHD_NO if connection is rejected + * @return #MHD_YES if connection is accepted, #MHD_NO if connection is rejected */ -static int +static MHD_RESULT server_accept_cb (void *cls, const struct sockaddr *addr, socklen_t addr_len) -- cgit v1.2.3