From e194dcd5e30bb6f4a26292161543e4058e5b84d3 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Wed, 20 Mar 2019 11:40:26 +0100 Subject: [PATCH] adapt code to MHD API change --- src/gns/gnunet-gns-proxy.c | 2 +- src/rest/gnunet-rest-server.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gns/gnunet-gns-proxy.c b/src/gns/gnunet-gns-proxy.c index a6b053e56..bae222499 100644 --- a/src/gns/gnunet-gns-proxy.c +++ b/src/gns/gnunet-gns-proxy.c @@ -2191,7 +2191,7 @@ create_response (void *cls, } MHD_get_connection_values (con, MHD_HEADER_KIND, - &con_val_iter, + (MHD_KeyValueIterator) &con_val_iter, s5r); curl_easy_setopt (s5r->curl, CURLOPT_HTTPHEADER, diff --git a/src/rest/gnunet-rest-server.c b/src/rest/gnunet-rest-server.c index f9e954912..3cbb750ba 100644 --- a/src/rest/gnunet-rest-server.c +++ b/src/rest/gnunet-rest-server.c @@ -416,11 +416,11 @@ create_response (void *cls, con_handle->data_handle = rest_conndata_handle; MHD_get_connection_values (con, MHD_GET_ARGUMENT_KIND, - &url_iterator, + (MHD_KeyValueIterator) &url_iterator, rest_conndata_handle); MHD_get_connection_values (con, MHD_HEADER_KIND, - &header_iterator, + (MHD_KeyValueIterator) &header_iterator, rest_conndata_handle); con_handle->pp = MHD_create_post_processor(con, 65536, -- 2.25.1